| Package | Description |
|---|---|
| ch.epfl.dedis.byzcoin | |
| ch.epfl.dedis.byzcoin.contracts | |
| ch.epfl.dedis.byzgen | |
| ch.epfl.dedis.calypso | |
| ch.epfl.dedis.eventlog | |
| ch.epfl.dedis.lib | |
| ch.epfl.dedis.lib.exception |
| 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 ByzCoinRPC |
ByzCoinRPC.fromByzCoin(Roster roster,
SkipblockId skipchainId)
Constructs a ByzCoinRPC from a known configuration.
|
DarcInstance |
ByzCoinRPC.getGenesisDarcInstance() |
Block |
ByzCoinRPC.getLatestBlock()
Fetches the latest block from the Skipchain and returns the corresponding Block.
|
boolean |
Proof.isContract(String expected,
SkipblockId id)
Checks if the proof is valid and of type expected.
|
ClientTransactionId |
ByzCoinRPC.sendTransaction(ClientTransaction t)
Sends a transaction to byzcoin, but doesn't wait for the inclusion of this transaction in a block.
|
ClientTransactionId |
ByzCoinRPC.sendTransactionAndWait(ClientTransaction t,
int wait)
Sends a transaction to byzcoin and waits for up to 'wait' blocks for the transaction to be
included in the global state.
|
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.
|
void |
ByzCoinRPC.update()
Fetches the latest configuration and genesis darc from byzcoin.
|
boolean |
Proof.verify(SkipblockId id)
Verifies the proof with regard to the root id.
|
| 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 |
|---|---|
void |
ChainConfigInstance.evolveChainConfig(ChainConfigData newConfig,
List<Signer> owners)
Sends the instruction to change the Chain Config and returns immediately.
|
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.
|
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.
|
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.
|
static DarcInstance |
DarcInstance.fromByzCoin(ByzCoinRPC bc,
Darc d)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
static DarcInstance |
DarcInstance.fromByzCoin(ByzCoinRPC bc,
DarcId baseId)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
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.
|
static ValueInstance |
ValueInstance.fromByzcoin(ByzCoinRPC bc,
Proof p)
Convenience function to connect to an existing ValueInstance.
|
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.
|
void |
DarcInstance.update()
Update looks up the darc in ByzCoin and updates to the latest version, if available.
|
void |
ValueInstance.update()
Updates the value by getting the latest instance and updating it.
|
| 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 |
|---|---|
CalypsoRPC |
CalypsoFactory.createConnection() |
CalypsoRPC |
CalypsoFactory.initialiseNewCalypso(Signer admin)
Create a new skipchain.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ReadInstance.decryptKeyMaterial(Scalar reader)
Decrypts the key material by creating the read and write proofs necessary
for the LTS to allow a re-encryption to the public key stored in the
read request.
|
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.
|
static CalypsoRPC |
CalypsoRPC.fromCalypso(Roster roster,
SkipblockId byzcoinId,
LTSId ltsId)
Connects to an existing byzcoin and an existing Long Term Secret.
|
WriteData |
Document.getWriteData(LTS lts)
Creates a WriteData object with the fields of the document.
|
ReadInstance |
WriteInstance.spawnCalypsoRead(CalypsoRPC calypso,
List<Signer> readers)
Spawns a new CalypsoRead instance for this Write Instance.
|
WriteInstance |
Document.spawnWrite(CalypsoRPC calypso,
DarcId publisherDarcId,
Signer publisherSigner)
Creates a new WriteInstance with the document stored in it.
|
| Constructor and Description |
|---|
CalypsoRPC(ByzCoinRPC byzcoin)
Creates a new Long Term Secret on an existing ByzCoin ledger.
|
CalypsoRPC(Roster roster,
Darc genesis,
java.time.Duration blockInterval)
Creates a new ByzCoin ledger and a new Long Term Secret.
|
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.
|
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 |
|---|---|
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.
|
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.
|
SearchResponse |
EventLogInstance.search(String topic,
long from,
long to)
Searches for events based on topic and a time range.
|
| 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 |
|---|---|
Roster |
SkipBlock.getRoster()
Gets the roster from the skipblock.
|
| Constructor and Description |
|---|
SkipBlock(byte[] sb) |
| Modifier and Type | Class and Description |
|---|---|
class |
CothorityAlreadyExistsException |
class |
CothorityCommunicationException |
class |
CothorityCryptoException |
class |
CothorityNotFoundException |
class |
CothorityPermissionException |
Copyright © 2018. All rights reserved.