| 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.
|
SecureDarcInstance |
ByzCoinRPC.getGenesisDarcInstance() |
Block |
ByzCoinRPC.getLatestBlock()
Fetches the latest block from the Skipchain and returns the corresponding Block.
|
ClientTransactionId |
ByzCoinRPC.sendTransaction(ClientTransaction t)
Sends a transaction to byzcoin, but doesn't wait for the inclusion of this transaction in a block.
|
void |
ByzCoinRPC.setBlockInterval(java.time.Duration newInterval,
List<Signer> admins,
List<Long> adminCtrs,
int wait)
Sets the new block interval that ByzCoin uses to create new block.
|
void |
ByzCoinRPC.setMaxBlockSize(int newMaxSize,
List<Signer> admins,
List<Long> adminCtrs,
int wait)
Sets the new block interval that ByzCoin uses to create new block.
|
void |
ByzCoinRPC.setRoster(Roster newRoster,
List<Signer> admins,
List<Long> adminCtrs,
int wait)
Change the current roster of the ByzCoin ledger.
|
void |
ByzCoinRPC.update()
Fetches the latest configuration and genesis darc from 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 |
|---|---|
void |
ChainConfigInstance.evolveChainConfig(ChainConfigData newConfig,
List<Signer> owners,
List<Long> ownerCtrs)
Sends the instruction to change the Chain Config and returns immediately.
|
void |
ChainConfigInstance.evolveConfigAndWait(ChainConfigData newConfig,
List<Signer> owners,
List<Long> ownerCtrs,
int wait)
Send the instruction to change the Chain Config and wait for it to be included.
|
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.
|
void |
ValueInstance.evolveValue(byte[] newValue,
Signer owner,
Long ownerCtr)
Asks byzcoin to update the value but does not wait for the transaction to be confirmed.
|
void |
ValueInstance.evolveValueAndWait(byte[] newValue,
Signer owner,
Long ownerCtr,
int wait)
Asks byzcoin to update the value and waits until the new value has
been stored in the global state.
|
static SecureDarcInstance |
SecureDarcInstance.fromByzCoin(ByzCoinRPC bc,
Darc d)
Instantiates a new DarcInstance given a working ByzCoin service and
an instanceId.
|
static SecureDarcInstance |
SecureDarcInstance.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 SecureDarcInstance |
SecureDarcInstance.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.
|
SecureDarcInstance |
SecureDarcInstance.spawnDarcAndWait(Darc d,
Signer s,
Long signerCounter,
int wait)
Spawns a new darc from the given darcInstance.
|
ClientTransactionId |
SecureDarcInstance.spawnInstance(String contractID,
Signer s,
Long signerCtr,
List<Argument> args)
Like spawnInstanceInstruction, but creates a ClientTransaction with only this instruction and sends it
to byzcoin.
|
Proof |
SecureDarcInstance.spawnInstanceAndWait(String contractID,
Signer s,
Long signerCtr,
List<Argument> args,
int wait)
Like spawnInstance but waits for the instance to be stored in byzcoin.
|
void |
SecureDarcInstance.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 |
|---|
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.
|
ValueInstance(ByzCoinRPC bc,
DarcId spawnerDarcId,
Signer spawnerSigner,
Long signerCtr,
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 LTSInstance |
LTSInstance.fromByzCoin(CalypsoRPC calypso,
InstanceId id)
Constructor used to connect to an existing instance.
|
static ReadInstance |
ReadInstance.fromByzCoin(CalypsoRPC calypso,
InstanceId id)
Constructor used to connect to an existing instance.
|
static CalypsoRPC |
CalypsoRPC.fromCalypso(ByzCoinRPC bc,
LTSId ltsId)
Connects to an existing Long Term Secret using a ByzCoinRPC.
|
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(CreateLTSReply lts)
Creates a WriteData object with the fields of the document.
|
void |
LTSInstance.reshareLTS(Roster roster,
List<Signer> signers,
List<Long> signerCtrs)
Start the resharing process that re-distributes the LTS shares to a different roster.
|
ReadInstance |
WriteInstance.spawnCalypsoRead(CalypsoRPC calypso,
List<Signer> readers,
List<Long> readerCtrs,
Point Xc)
Spawns a new CalypsoRead instance for this Write Instance.
|
WriteInstance |
Document.spawnWrite(CalypsoRPC calypso,
DarcId publisherDarcId,
Signer publisherSigner,
Long signerCtr)
Creates a new WriteInstance with the document stored in it.
|
| Constructor and Description |
|---|
CalypsoRPC(ByzCoinRPC byzcoin,
DarcId darcBaseID,
Roster ltsRoster,
List<Signer> signers,
List<Long> signerCtrs)
Creates a new Long Term Secret on an existing ByzCoin ledger.
|
LTSInstance(CalypsoRPC calypso,
DarcId darcBaseID,
Roster roster,
List<Signer> signers,
List<Long> signerCtrs) |
LTSInstanceInfo(Calypso.LtsInstanceInfo proto) |
ReadInstance(CalypsoRPC calypso,
WriteInstance write,
List<Signer> signers,
List<Long> signerCtrs,
Point Xc)
Create a new ReadInstance to request access to an encrypted document.
|
WriteData(CreateLTSReply lts,
byte[] dataEnc,
byte[] keyMaterial,
byte[] extraData,
DarcId publisher)
Create a new document by giving all possible parameters.
|
WriteInstance(CalypsoRPC calypso,
DarcId darcBaseID,
List<Signer> signers,
List<Long> signerCtrs,
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,
List<Signer> signers,
List<Long> signerCtrs)
Logs an event, the returned value is the ID of the event which can be retrieved later.
|
List<InstanceId> |
EventLogInstance.log(List<Event> events,
List<Signer> signers,
List<Long> signerCtrs)
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 darcBaseID,
List<Signer> signers,
List<Long> signerCtrs)
Constructor for when do you not know the eventlog contract, use this constructor when constructing for the first
time.
|
EventLogInstance(ByzCoinRPC bc,
InstanceId id)
Constructor for when the caller already knows the eventlog contract.
|
| Constructor and Description |
|---|
SkipBlock(byte[] sb) |
| Modifier and Type | Class and Description |
|---|---|
class |
CothorityAlreadyExistsException |
class |
CothorityCommunicationException |
class |
CothorityCryptoException |
class |
CothorityNotFoundException |
class |
CothorityPermissionException |
Copyright © 2019. All rights reserved.