| Package | Description |
|---|---|
| ch.epfl.dedis.lib | |
| ch.epfl.dedis.lib.darc | |
| ch.epfl.dedis.lib.exception | |
| ch.epfl.dedis.lib.omniledger | |
| ch.epfl.dedis.lib.omniledger.contracts |
| Modifier and Type | Method and Description |
|---|---|
Roster |
SkipBlock.getRoster()
Gets the roster from the skipblock.
|
| Constructor and Description |
|---|
SkipBlock(byte[] sb) |
| Constructor and Description |
|---|
Darc(Identity owner,
List<Identity> users,
byte[] data)
Initialize a darc by giving an owner that is allowed to evolve the darc
and a list of users allowed to sign actions on behalf of that darc.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CothorityCommunicationException |
class |
CothorityCryptoException |
class |
CothorityNotFoundException |
class |
CothorityPermissionException |
| Modifier and Type | Method and Description |
|---|---|
boolean |
OmniledgerRPC.checkLiveness()
Verifies if the nodes representing the cothority are alive and reply to a ping.
|
Proof |
OmniledgerRPC.getProof(InstanceId id)
Gets a proof from omniledger to show that a given instance is in the
global state.
|
void |
OmniledgerRPC.sendTransaction(ClientTransaction t)
Sends a transaction to omniledger, but doesn't wait for the inclusion of this transaction in a block.
|
void |
OmniledgerRPC.update()
Fetches the latest configuration and genesis darc from omniledger.
|
boolean |
Proof.verify()
Verifies the proof with regard to the root id.
|
| Constructor and Description |
|---|
Instance(Proof p)
Instantiates an instance given a proof sent by omniledger.
|
OmniledgerRPC(Roster r,
Darc d,
java.time.Duration blockInterval)
This instantiates a new omniledger object by asking the cothority to set up a new omniledger.
|
OmniledgerRPC(Roster roster,
SkipblockId skipchainId)
Constructs an OmniLedgerRPC from known configuration.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionId |
DarcInstance.evolveDarc(Darc newDarc,
Signer owner) |
void |
DarcInstance.evolveDarcAndWait(Darc newDarc,
Signer owner)
Asks omniledger to evolve the darc and waits until the new darc has
been stored in the global state.
|
TransactionId |
ValueInstance.evolveValue(byte[] newValue,
Signer owner) |
void |
ValueInstance.evolveValueAndWait(byte[] newValue,
Signer owner)
Asks omniledger to update the value and waits until the new value has
been stored in the global state.
|
Event |
EventLogInstance.get(InstanceId key)
Retrieves the stored event by key.
|
InstanceId |
EventLogInstance.log(Event event,
List<Signer> signers)
Logs an event, the returned value is the ID of the event which can be retrieved later.
|
List<InstanceId> |
EventLogInstance.log(List<Event> events,
List<Signer> signers)
Logs a list of events, the returned value is a list of ID for every event which can be used to retrieve events
later.
|
SearchResponse |
EventLogInstance.search(String topic,
long from,
long to)
Searches for events based on topic and a time range.
|
TransactionId |
DarcInstance.spawnContract(String contractID,
Signer s,
List<Argument> args)
Like spawnContractInstruction, but creates a ClientTransaction with only this instruction and sends it
to the omniledger.
|
Proof |
DarcInstance.spawnContractAndWait(String contractID,
Signer s,
List<Argument> args)
Like spawnContract but waits for the instance to be stored in omniledger.
|
void |
DarcInstance.update() |
void |
ValueInstance.update() |
| Constructor and Description |
|---|
DarcInstance(OmniledgerRPC ol,
Darc d) |
DarcInstance(OmniledgerRPC ol,
InstanceId id)
Instantiates a new DarcInstance given a working omniledger instance and
an instanceId.
|
EventLogInstance(OmniledgerRPC ol,
InstanceId id)
Constructor for when the caller already knows the eventlog instance.
|
EventLogInstance(OmniledgerRPC ol,
List<Signer> signers,
DarcId darcId)
Constructor for when do you not know the eventlog instance, use this constructor when constructing for the first
time.
|
ValueInstance(OmniledgerRPC ol,
InstanceId id)
Instantiates a new ValueInstance given a working omniledger instance and
an instanceId.
|
ValueInstance(OmniledgerRPC ol,
Proof p) |
Copyright © 2018. All rights reserved.