| Package | Description |
|---|---|
| ch.epfl.dedis.lib.omniledger | |
| ch.epfl.dedis.lib.omniledger.contracts |
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
Instruction.deriveId(String what)
This function derives an instance ID from the instruction with the given string.
|
InstanceId |
Instance.getId() |
InstanceId |
Instruction.getInstId()
Getter for the object ID.
|
static InstanceId |
InstanceId.zero()
Creates an instance ID of all zeros.
|
| Modifier and Type | Method and Description |
|---|---|
Proof |
OmniledgerRPC.getProof(InstanceId id)
Gets a proof from omniledger to show that a given instance is in the
global state.
|
| Constructor and Description |
|---|
Instruction(InstanceId instId,
byte[] nonce,
int index,
int length,
Delete delete)
Use this constructor if it is a delete instruction, i.e.
|
Instruction(InstanceId instId,
byte[] nonce,
int index,
int length,
Invoke invoke)
Use this constructor if it is an invoke instruction, i.e.
|
Instruction(InstanceId instId,
byte[] nonce,
int index,
int length,
Spawn spawn)
Use this constructor if it is a spawn instruction, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
ValueInstance.getId() |
InstanceId |
EventLogInstance.getInstanceId()
Gets the instance ID which can be stored to re-connect to the same eventlog instance in the future.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
EventLogInstance.get(InstanceId key)
Retrieves the stored event by key.
|
| Constructor and Description |
|---|
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.
|
ValueInstance(OmniledgerRPC ol,
InstanceId id)
Instantiates a new ValueInstance given a working omniledger instance and
an instanceId.
|
Copyright © 2018. All rights reserved.