| Package | Description |
|---|---|
| ch.epfl.dedis.byzcoin | |
| ch.epfl.dedis.byzcoin.contracts | |
| ch.epfl.dedis.byzcoin.transaction | |
| ch.epfl.dedis.calypso | |
| ch.epfl.dedis.eventlog | |
| ch.epfl.dedis.lib.darc |
| Modifier and Type | Method and Description |
|---|---|
DarcId |
Instance.getDarcId() |
DarcId |
Proof.getDarcID() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
ByzCoinRPC.checkAuthorization(DarcId id,
List<Identity> identities)
CheckAuthorization asks ByzCoin which of the rules stored in the latest version of the darc given by id
can be resolved with a combination of signatures given by identities.
|
| Modifier and Type | Method and Description |
|---|---|
DarcId |
DarcInstance.getId() |
| Modifier and Type | Method and Description |
|---|---|
static DarcInstance |
DarcInstance.fromByzCoin(ByzCoinRPC bc,
DarcId baseId)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
| Constructor and Description |
|---|
DarcInstance(ByzCoinRPC bc,
DarcId spawnerDarcId,
Signer spawnerSigner,
Darc newDarc)
Instantiates a new DarcInstance from an existing darc by sending a spawn instruction to
ByzCoin and then creating the instance from the existing darcInstance.
|
ValueInstance(ByzCoinRPC bc,
DarcId spawnerDarcId,
Signer spawnerSigner,
byte[] value)
Instantiates a new value in ByzCoin by sending a spawn instruction to a darc
that has a "spawn:value" rule in it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Instruction.signBy(DarcId darcId,
List<Signer> signers)
Have a list of signers sign the instruction.
|
Request |
Instruction.toDarcRequest(DarcId darcId)
Converts the instruction to a Darc request representation.
|
| Modifier and Type | Method and Description |
|---|---|
DarcId |
WriteInstance.getDarcId() |
DarcId |
Document.getPublisherId() |
| Modifier and Type | Method and Description |
|---|---|
WriteInstance |
Document.spawnWrite(CalypsoRPC calypso,
DarcId publisherDarcId,
Signer publisherSigner)
Creates a new WriteInstance with the document stored in it.
|
| Constructor and Description |
|---|
Document(byte[] data,
byte[] keyMaterial,
byte[] extraData,
DarcId publisherId)
Initialises a document.
|
Document(byte[] data,
int keylen,
byte[] extraData,
DarcId publisherId)
Creates a new document from data, creates a new Darc, a symmetric
symmetricKey and encrypts the data using CBC-RSA.
|
WriteData(LTS lts,
byte[] dataEnc,
byte[] keyMaterial,
byte[] extraData,
DarcId publisher)
Create a new document by giving all possible parameters.
|
WriteInstance(CalypsoRPC calypso,
DarcId darcId,
List<Signer> signers,
WriteData wr)
Constructor for creating a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
| Constructor and Description |
|---|
EventLogInstance(ByzCoinRPC bc,
DarcId darcId,
List<Signer> signers)
Constructor for when do you not know the eventlog contract, use this constructor when constructing for the first
time.
|
| Modifier and Type | Method and Description |
|---|---|
DarcId |
Darc.getBaseId()
Gets the base-ID of the darc, i.e.
|
DarcId |
IdentityDarc.getDarcId()
Return ID of DARC
|
DarcId |
Darc.getId()
Calculate the getId of the darc by calculating the sha-256 of the invariant
parts which excludes the delegation-signature.
|
DarcId |
Darc.getPrevID() |
static DarcId |
DarcId.zero()
Creates a darc ID with all zeros.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Darc.setBaseId(DarcId id) |
void |
Darc.setPrevId(DarcId id) |
| Constructor and Description |
|---|
IdentityDarc(DarcId darcID)
Instantiates a IdentityDarc given a darc-id.
|
Request(DarcId baseId,
String action,
byte[] msg,
List<Identity> identities,
List<byte[]> signatures)
Constructor for the darc request.
|
Copyright © 2018. All rights reserved.