public class ReadData extends Object
| Constructor and Description |
|---|
ReadData(Instance inst)
Creates a new ReadData from an existing instance.
|
ReadData(InstanceId writeId,
Point readerPk)
Construct a read request given the ID of the corresponding write request and the reader's public key.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadData |
fromProto(byte[] buf)
Takes a byte array as an input to parse into the protobuf representation of ReadData.
|
InstanceId |
getWriteId() |
Point |
getXc() |
Calypso.Read |
toProto() |
public ReadData(InstanceId writeId, Point readerPk)
writeId - the instance of the write requestreaderPk - the reader's public keypublic ReadData(Instance inst) throws CothorityNotFoundException
inst - the instanceCothorityNotFoundException - if the read request in the instance is corruptpublic Point getXc()
public InstanceId getWriteId()
public Calypso.Read toProto()
public static ReadData fromProto(byte[] buf) throws com.google.protobuf.InvalidProtocolBufferException
buf - the protobuf datacom.google.protobuf.InvalidProtocolBufferException - if the protobuf data is invalid.Copyright © 2019. All rights reserved.