| Package | Description |
|---|---|
| ch.epfl.dedis.byzcoin | |
| ch.epfl.dedis.byzcoin.contracts | |
| ch.epfl.dedis.byzcoin.transaction | |
| ch.epfl.dedis.byzgen | |
| ch.epfl.dedis.calypso | |
| ch.epfl.dedis.eventlog | |
| ch.epfl.dedis.lib.darc |
| Modifier and Type | Method and Description |
|---|---|
static void |
ByzCoinEvolve.from20181008(ByzCoinRPC bc,
Signer admin)
Things to evolve since this version:
- update the genesis darc to include a 'invoke:update_config' rule.
|
static Darc |
ByzCoinRPC.makeGenesisDarc(Signer admin,
Roster roster)
Creates a genesis darc to use for the initialisation of Byzcoin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ByzCoinRPC.setBlockInterval(java.time.Duration newInterval,
List<Signer> admins,
int wait)
Sets the new block interval that ByzCoin uses to create new block.
|
void |
ByzCoinRPC.setMaxBlockSize(int newMaxSize,
List<Signer> admins,
int wait)
Sets the new block interval that ByzCoin uses to create new block.
|
void |
ByzCoinRPC.setRoster(Roster newRoster,
List<Signer> admins,
int wait)
Change the current roster of the ByzCoin ledger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DarcInstance.evolveDarc(Darc newDarc,
Signer owner)
Takes a new darc, increases its version, creates an instruction and sends it to ByzCoin, without
waiting an acknowledgement.
|
ClientTransactionId |
DarcInstance.evolveDarcAndWait(Darc newDarc,
Signer owner,
int wait)
Asks byzcoin to evolve the darc and waits until the new darc has
been stored in the global state.
|
Instruction |
DarcInstance.evolveDarcInstruction(Darc newDarc,
Signer owner,
int pos,
int len)
Creates an instruction to evolve the darc in byzcoin.
|
void |
ValueInstance.evolveValue(byte[] newValue,
Signer owner) |
void |
ValueInstance.evolveValueAndWait(byte[] newValue,
Signer owner,
int wait)
Asks byzcoin to update the value and waits until the new value has
been stored in the global state.
|
Instruction |
ValueInstance.evolveValueInstruction(byte[] newValue,
Signer owner,
int pos,
int len)
Creates an instruction to evolve the value in byzcoin.
|
DarcInstance |
DarcInstance.spawnDarcAndWait(Darc d,
Signer s,
int wait)
Spawns a new darc from the given darcInstance.
|
ClientTransactionId |
DarcInstance.spawnInstance(String contractID,
Signer s,
List<Argument> args)
Like spawnInstanceInstruction, but creates a ClientTransaction with only this instruction and sends it
to byzcoin.
|
Proof |
DarcInstance.spawnInstanceAndWait(String contractID,
Signer s,
List<Argument> args,
int wait)
Like spawnInstance but waits for the instance to be stored in byzcoin.
|
Instruction |
DarcInstance.spawnInstanceInstruction(String contractID,
Signer s,
List<Argument> args,
int pos,
int len)
Creates an instruction for spawning an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChainConfigInstance.evolveChainConfig(ChainConfigData newConfig,
List<Signer> owners)
Sends the instruction to change the Chain Config and returns immediately.
|
Instruction |
ChainConfigInstance.evolveChainConfigInstruction(ChainConfigData newConfig,
List<Signer> owners,
int pos,
int len)
Creates an instruction to evolve the value in byzcoin.
|
void |
ChainConfigInstance.evolveConfigAndWait(ChainConfigData newConfig,
List<Signer> owners,
int wait)
Send the instruction to change the Chain Config and wait for it to be included.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
CalypsoRPC |
CalypsoFactory.initialiseNewCalypso(Signer admin)
Create a new skipchain.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ReadInstance |
WriteInstance.spawnCalypsoRead(CalypsoRPC calypso,
List<Signer> readers)
Spawns a new CalypsoRead instance for this Write Instance.
|
| Constructor and Description |
|---|
ReadInstance(CalypsoRPC calypso,
WriteInstance write,
List<Signer> signers)
Create a new ReadInstance to request access to an encrypted document.
|
ReadInstance(CalypsoRPC calypso,
WriteInstance write,
List<Signer> signers,
Point Xc)
Create a new ReadInstance to request access to an encrypted document.
|
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 | Class and Description |
|---|---|
class |
SignerEd25519 |
class |
SignerX509EC
SignerX509EC represents a keycard that holds its private key and can only be used to sign
but which will not reveal its private key.
|
| Modifier and Type | Method and Description |
|---|---|
static Signer |
SignerFactory.New(byte[] data)
Returns the signer corresponding to the data.
|
| Modifier and Type | Method and Description |
|---|---|
static Identity |
IdentityFactory.New(Signer signer)
Creates the corresponding identity to a signer.
|
| Constructor and Description |
|---|
IdentityEd25519(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
IdentityX509EC(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
Copyright © 2018. All rights reserved.