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 |
getDarcId() |
byte[] |
getData() |
InstanceId |
getId() |
public static Instance fromProof(Proof p) throws CothorityNotFoundException
p - the proof for the instanceCothorityExceptionCothorityNotFoundExceptionpublic static Instance fromByzcoin(ByzCoinRPC bc, InstanceId id) throws CothorityCommunicationException, CothorityNotFoundException
bc - a running Byzcoin serviceid - a valid instance idCothorityCommunicationExceptionCothorityNotFoundExceptionpublic InstanceId getId()
public String getContractId()
public DarcId getDarcId()
public byte[] getData()
Copyright © 2018. All rights reserved.