public class ReadInstance extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ContractId |
| Constructor and Description |
|---|
ReadInstance(CalypsoRPC calypso,
WriteInstance write,
List<Signer> signers)
Constructor used for when a new instance is needed.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptKeyMaterial(Scalar reader)
Decrypts the key material by creating the read and write proofs necessary
for the LTS to allow a re-encryption to the public key stored in the
read request.
|
static ReadInstance |
fromByzCoin(CalypsoRPC calypso,
InstanceId id)
Constructor used to connect to an existing instance.
|
Instance |
getInstance()
Get the instance object.
|
ReadData |
getRead() |
public static String ContractId
public ReadInstance(CalypsoRPC calypso, WriteInstance write, List<Signer> signers) throws CothorityException
calypso - The CalypsoRPC object.write - The write instance where a new read instance should be spawned from.signers - Signers who are allowed to spawn a new instance.CothorityExceptionpublic Instance getInstance()
public ReadData getRead() throws CothorityNotFoundException
CothorityNotFoundExceptionpublic byte[] decryptKeyMaterial(Scalar reader) throws CothorityException
reader - is the corresponding private key of the publicCothorityExceptionpublic static ReadInstance fromByzCoin(CalypsoRPC calypso, InstanceId id) throws CothorityException
calypso - The CalypsoRPC object.id - The id of the instance.CothorityExceptionCopyright © 2018. All rights reserved.