| Package | Description |
|---|---|
| ch.epfl.dedis.byzcoin | |
| ch.epfl.dedis.byzcoin.contracts | |
| ch.epfl.dedis.byzcoin.transaction | |
| ch.epfl.dedis.calypso | |
| ch.epfl.dedis.eventlog |
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
Instance.getId() |
static InstanceId |
InstanceId.zero()
Creates a contract ID of all zeros, which is the place where the ByzCoin
config is stored.
|
| Modifier and Type | Method and Description |
|---|---|
static Instance |
Instance.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Creates an instance given an id and a Byzcoin service.
|
Proof |
ByzCoinRPC.getProof(InstanceId id)
Gets a proof from byzcoin to show that a given instance is stored in the
global state.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
ChainConfigInstance.getId() |
InstanceId |
ValueInstance.getId() |
| Modifier and Type | Method and Description |
|---|---|
static ValueInstance |
ValueInstance.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Instantiates a new ValueInstance given a working byzcoin service and
an instanceId.
|
static DarcInstance |
DarcInstance.fromByzCoin(ByzCoinRPC bc,
InstanceId id)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
Instruction.deriveId(String what)
This function derives a contract ID from the instruction with the given string.
|
InstanceId |
Instruction.getInstId()
Getter for the instance ID.
|
| 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 |
ReadData.getWriteId() |
| Modifier and Type | Method and Description |
|---|---|
static WriteData |
WriteData.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Recreates a WriteData from an instanceid.
|
static ReadInstance |
ReadInstance.fromByzCoin(CalypsoRPC calypso,
InstanceId id)
Constructor used to connect to an existing instance.
|
static WriteInstance |
WriteInstance.fromCalypso(CalypsoRPC calypso,
InstanceId writeId)
Fetches an already existing writeInstance from Calypso and returns it.
|
static Document |
Document.fromCalypso(CalypsoRPC calypso,
InstanceId riId,
Scalar reader)
Fetches a document from calypso, once the read instance has been created.
|
| Constructor and Description |
|---|
ReadData(InstanceId writeId,
Point readerPk)
Construct a read request given the ID of the corresponding write request and the reader's public key.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
EventLogInstance.getInstanceId()
Gets the contract ID which can be stored to re-connect to the same eventlog instance in the future.
|
InstanceId |
EventLogInstance.log(Event event,
DarcId darcId,
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,
DarcId darcId,
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 |
|---|---|
static EventLogInstance |
EventLogInstance.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Constructor for when the caller already knows the eventlog contract.
|
Event |
EventLogInstance.get(InstanceId key)
Retrieves the stored event by key.
|
Copyright © 2018. All rights reserved.