| Package | Description |
|---|---|
| ch.epfl.dedis.byzcoin | |
| ch.epfl.dedis.byzcoin.contracts | |
| ch.epfl.dedis.lib.darc |
| Modifier and Type | Method and Description |
|---|---|
Darc |
ByzCoinRPC.getGenesisDarc() |
static Darc |
ByzCoinRPC.makeGenesisDarc(Signer admin,
Roster roster)
Creates a genesis darc to use for the initialisation of Byzcoin.
|
| Constructor and Description |
|---|
ByzCoinRPC(Roster r,
Darc d,
java.time.Duration blockInterval)
This instantiates a new byzcoin object by asking the cothority to set up a new byzcoin.
|
| Modifier and Type | Method and Description |
|---|---|
Darc |
SecureDarcInstance.getDarc() |
| Modifier and Type | Method and Description |
|---|---|
void |
SecureDarcInstance.evolveDarc(Darc newDarc,
Signer owner,
Long ownerCtr)
Takes a new darc, increases its version, creates an instruction and sends it to ByzCoin, without
waiting an acknowledgement.
|
ClientTransactionId |
SecureDarcInstance.evolveDarcAndWait(Darc newDarc,
Signer owner,
Long ownerCtr,
int wait)
Asks byzcoin to evolve the darc and waits until the new darc has
been stored in the global state.
|
ClientTransactionId |
SecureDarcInstance.evolveDarcAndWait(Darc newDarc,
Signer owner,
Long ownerCtr,
int wait,
boolean unrestricted)
Asks byzcoin to (unrestricted) evolve the darc and waits until the new darc has
been stored in the global state.
|
Instruction |
SecureDarcInstance.evolveDarcInstruction(Darc newDarc,
Identity id,
Long signerCtr)
Creates an instruction to evolve the darc in byzcoin.
|
Instruction |
SecureDarcInstance.evolveDarcInstruction(Darc newDarc,
Identity id,
Long signerCtr,
boolean unrestricted)
Creates an instruction to (unrestricted) evolve the darc in byzcoin.
|
static SecureDarcInstance |
SecureDarcInstance.fromByzCoin(ByzCoinRPC bc,
Darc d)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
SecureDarcInstance |
SecureDarcInstance.spawnDarcAndWait(Darc d,
Signer s,
Long signerCounter,
int wait)
Spawns a new darc from the given darcInstance.
|
| Constructor and Description |
|---|
SecureDarcInstance(ByzCoinRPC bc,
DarcId spawnerBaseId,
Signer spawnerSigner,
Long signerCtr,
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.
|
| Modifier and Type | Method and Description |
|---|---|
Darc |
Darc.partialCopy()
Returns a partial copy of the Darc where the rules and the description stay the same but the other attributes are
uninitialised.
|
| Modifier and Type | Method and Description |
|---|---|
static Identity |
IdentityFactory.New(Darc darc)
Creates the corresponding identity to a darc.
|
void |
Darc.setPrevId(Darc d) |
| Constructor and Description |
|---|
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
Copyright © 2019. All rights reserved.