public class Instance extends Object
| Modifier and Type | Method and Description |
|---|---|
static Instance |
fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Creates an instance given an id and a Byzcoin service.
|
static Instance |
fromProof(Proof p)
Creates an instance from a proof received from ByzCoin.
|
String |
getContractId() |
DarcId |
getDarcBaseID() |
byte[] |
getData() |
InstanceId |
getId() |
public static Instance fromProof(Proof p)
p - the proof for the instancepublic static Instance fromByzcoin(ByzCoinRPC bc, InstanceId id) throws CothorityCommunicationException, CothorityNotFoundException, CothorityCryptoException
bc - a running Byzcoin serviceid - a valid instance idCothorityCommunicationException - if something goes wrongCothorityNotFoundException - if the requested instance cannot be foundCothorityCryptoException - if something is wrong with the proofpublic InstanceId getId()
public String getContractId()
public DarcId getDarcBaseID()
public byte[] getData()
Copyright © 2019. All rights reserved.