| Package | Description |
|---|---|
| ch.epfl.dedis.byzgen | |
| ch.epfl.dedis.lib | |
| ch.epfl.dedis.lib.omniledger | |
| ch.epfl.dedis.lib.skipchain | |
| ch.epfl.dedis.ocs |
| Modifier and Type | Method and Description |
|---|---|
OnchainSecrets |
OcsFactory.createConnection() |
SkipblockId |
OcsFactory.initialiseNewSkipchain(Signer admin)
Create a new skipchain.
|
| Constructor and Description |
|---|
OnchainSecrets(Roster roster,
Darc admin)
Creates a new OnchainSecrets class and creates a new skipchain.
|
OnchainSecrets(Roster roster,
SkipblockId ocsID)
Creates a new OnchainSecrets class that attaches to an existing skipchain.
|
| Modifier and Type | Method and Description |
|---|---|
StatusProto.Response |
ServerIdentity.GetStatus() |
byte[] |
ServerIdentity.SendMessage(String path,
byte[] data) |
com.google.protobuf.ByteString |
Roster.sendMessage(String path,
com.google.protobuf.GeneratedMessageV3 proto) |
| Constructor and Description |
|---|
SyncSendMessage(String path,
byte[] msg) |
| Constructor and Description |
|---|
Config(byte[] buf) |
| Modifier and Type | Method and Description |
|---|---|
SkipBlock |
SkipchainRPC.getLatestSkipblock() |
SkipBlock |
SkipchainRPC.getSkipblock(SkipblockId id)
Returns the skipblock from the skipchain, given its id.
|
| Constructor and Description |
|---|
SkipchainRPC(Roster roster,
SkipblockId scID)
If the skipchain is already initialised, this constructor will only
initialise the class.
|
| Modifier and Type | Method and Description |
|---|---|
Darc |
OnchainSecrets.addIdentityToDarc(Darc darc,
Identity identity,
Signer signer,
int role)
Adds a new identity to an existing darc under the given role.
|
Darc |
OnchainSecrets.addIdentityToDarc(DarcId id,
Signer identity,
Signer signer,
int role)
Instead of giving a darc, this method will search for an existing darc given its id on the
skipchain.
|
Darc |
OnchainSecrets.addIdentityToDarc(Darc darc,
Signer identity,
Signer signer,
int role)
Overloaded method for convenience in case the identity is only available as a signer.
|
ReadRequestId |
OnchainSecretsRPC.createReadRequest(ReadRequest rr)
Requests read-access to a document from the cothority.
|
void |
OnchainSecretsRPC.createSkipchains(Darc writers)
Creates a new skipchain and sets up a new ocs-shard.
|
WriteRequest |
OnchainSecretsRPC.createWriteRequest(WriteRequest wr,
DarcSignature signature)
Creates a write request on the skipchain.
|
Darc |
OnchainSecretsRPC.getAdminDarc() |
SignaturePath |
OnchainSecretsRPC.getDarcPath(DarcId base,
Identity identity,
int role)
Gets a darc-path starting from the base to the identity given.
|
SignaturePath |
OnchainSecrets.getDarcPath(DarcId base,
Signer identity,
int role)
Convenience method to pass a signer as identity and get the darc-path used in signatures.
|
DecryptKey |
OnchainSecretsRPC.getDecryptionKey(ReadRequestId id)
Requests the re-encryption symmetricKey from the skipchain.
|
DecryptKey |
OnchainSecretsRPC.getDecryptionKeyEphemeral(ReadRequestId id,
DarcSignature signature,
Point ephemeral)
Requests the re-encryption symmetricKey from the skipchain, but uses an ephemeral key
for it.
|
Document |
OnchainSecrets.getDocument(WriteRequestId wrId,
Signer reader)
Creates a read-request, if successful fetches the document from the skipchain and decodes the
keymaterial.
|
Document |
OnchainSecrets.getDocumentEphemeral(WriteRequestId wrId,
Signer reader)
Requests the re-encryption symmetricKey from the skipchain, but uses an ephemeral key
for it.
|
List<Darc> |
OnchainSecretsRPC.getLatestDarc(DarcId id)
Requests the whole chain of darcs up to the current latest darc.
|
OCSProto.Read |
OnchainSecretsRPC.getRead(ReadRequestId id)
Requests the skipblock representing the read-request 'id' and returns
the corresponding OCSRead-structure.
|
Point |
OnchainSecretsRPC.getSharedPublicKey()
returns the shared symmetricKey of the DKG that must be used to encrypt the
symmetric encryption symmetricKey.
|
DarcSignature |
WriteRequest.getSignature(OnchainSecretsRPC ocs,
Signer publisher)
Creates a correct signature-path starting from the admin darc and
signs that path to get a correct write-request.
|
SkipBlockProto.SkipBlock |
OnchainSecretsRPC.getSkipblock(SkipblockId id)
Returns the skipblock from the skipchain, given its id.
|
OCSProto.Transaction |
OnchainSecretsRPC.getTransaction(SkipblockId id)
Returns the transaction of a given skipblock, given the id of the block.
|
OCSProto.Write |
OnchainSecretsRPC.getWrite(WriteRequestId id)
Requests the skipblock representing the write-request 'id' and returns
the corresponding OCSWrite-structure.
|
WriteRequest |
OnchainSecrets.publishDocument(Document doc,
Signer writer)
Publishes a document given the Document and the writer with write-authorization.
|
Darc |
OnchainSecrets.removeIdentityFromDarc(Darc darc,
Identity identity,
Signer signer,
int role)
Remove identity from an existing darc under the given role.
|
OCSProto.Write |
WriteRequest.toProto(Point X,
SkipblockId scid)
Returns a protobuf-formatted block that can be sent to the cothority
for storage on the skipchain.
|
void |
OnchainSecretsRPC.updateDarc(Darc newAccount)
Updates an existing account or adds a new account to the skipchain.
|
| Constructor and Description |
|---|
OnchainSecrets(Roster roster,
Darc admin)
Creates a new OnchainSecrets class and creates a new skipchain.
|
OnchainSecrets(Roster roster,
SkipblockId ocsID)
Creates a new OnchainSecrets class that attaches to an existing skipchain.
|
ReadRequest(OnchainSecretsRPC ocs,
WriteRequestId wrId,
Signer reader)
This fetches the write-request and the path for the reader to sign.
|
Copyright © 2018. All rights reserved.