| Package | Description |
|---|---|
| ch.epfl.dedis.byzgen | |
| ch.epfl.dedis.lib.darc | |
| ch.epfl.dedis.ocs |
| Modifier and Type | Method and Description |
|---|---|
SkipblockId |
OcsFactory.initialiseNewSkipchain(Signer admin)
Create a new skipchain.
|
| 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 |
|---|---|
void |
Darc.addOwner(Signer signer)
Adds a owner to the list of allowed signers.
|
void |
Darc.addUser(Signer signer)
Adds a user to the list of allowed signers.
|
static Identity |
IdentityFactory.New(Signer signer)
Creates the corresponding identity to a signer.
|
void |
Darc.removeOwner(Signer signer) |
void |
Darc.removeUser(Signer signer) |
void |
Darc.setEvolution(Darc previous,
Signer previousOwner)
To evolve a darc, the latest valid darc needs to sign the new darc.
|
void |
Darc.setEvolutionOffline(Darc previous,
SignaturePath path,
Signer previousOwner)
To evolve a darc, the latest valid darc needs to sign the new darc.
|
| Constructor and Description |
|---|
Darc(Signer owner,
List<Signer> users,
byte[] data)
Overloaded function for convenience.
|
DarcSignature(byte[] msg,
Darc darc,
Signer signer,
int role) |
DarcSignature(byte[] msg,
SignaturePath path,
Signer signer)
This will return a new DarcSignature by the signer on the message.
|
IdentityEd25519(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
IdentityX509EC(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
SignaturePath(Darc darc,
Signer signer,
int role)
Overloaded method for convenience.
|
SignaturePath(List<Darc> darcPath,
Signer signer,
int role)
Overloaded method for convenience.
|
SignaturePath(Signer signer,
int role)
For creating online paths that don't inlcude the previous darcs
but that need the path to be verified by the verifier itself.
|
| Constructor and Description |
|---|
Darc(Signer owner,
List<Signer> users,
byte[] data)
Overloaded function for convenience.
|
| 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.
|
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.
|
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.
|
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.
|
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.
|
| Constructor and Description |
|---|
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.