| Package | Description |
|---|---|
| ch.epfl.dedis.byzgen | |
| ch.epfl.dedis.lib.darc | |
| ch.epfl.dedis.ocs |
| Modifier and Type | Method and Description |
|---|---|
Darc |
OnchainSecrets.getLatestReaders(WriteRequestId id)
Searches for the most up-to-date readers-darc of the given write
request.
|
| Constructor and Description |
|---|
OnchainSecrets(Roster roster,
Darc admin)
Creates a new OnchainSecrets class and creates a new skipchain.
|
| Modifier and Type | Method and Description |
|---|---|
Darc |
Darc.copy()
Creates a copy of the current darc and increases the version-number
by 1.
|
| Modifier and Type | Method and Description |
|---|---|
List<Darc> |
SignaturePath.getDarcs()
Returns a copy of the darc-list
|
| Modifier and Type | Method and Description |
|---|---|
void |
Darc.addOwner(Darc darc)
Adds an owner to the list of allowed signers.
|
void |
Darc.addUser(Darc darc)
Adds a user to the list of allowed signers.
|
boolean |
Darc.equals(Darc d) |
static Identity |
IdentityFactory.New(Darc darc)
Creates the corresponding identity to a darc.
|
void |
Darc.removeOwner(Darc darc) |
void |
Darc.removeUser(Darc darc) |
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.
|
boolean |
DarcSignature.verify(byte[] msg,
Darc base)
Returns true if the signature verification is OK, false on an error.
|
boolean |
Darc.verifyEvolution(Darc previous)
Returns true if the current darc has correctly been evolved from the previous darc.
|
| Constructor and Description |
|---|
DarcSignature(byte[] msg,
Darc darc,
Signer signer,
int role) |
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
SignaturePath(Darc darc,
Signer signer,
int role)
Overloaded method for convenience.
|
| Constructor and Description |
|---|
SignaturePath(List<Darc> darcPath,
Identity signer,
int role)
The role is the final role this signature should be used.
|
SignaturePath(List<Darc> darcPath,
Signer signer,
int role)
Overloaded method for convenience.
|
| Modifier and Type | Field and Description |
|---|---|
protected Darc |
OnchainSecretsRPC.adminDarc |
Darc |
WriteRequest.owner |
| 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.
|
Darc |
OnchainSecretsRPC.getAdminDarc() |
Darc |
Document.getReaders() |
Darc |
OnchainSecrets.removeIdentityFromDarc(Darc darc,
Identity identity,
Signer signer,
int role)
Remove identity from an existing darc under the given role.
|
| Modifier and Type | Method and Description |
|---|---|
List<Darc> |
OnchainSecretsRPC.getLatestDarc(DarcId id)
Requests the whole chain of darcs up to the current latest darc.
|
| 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(Darc darc,
Signer identity,
Signer signer,
int role)
Overloaded method for convenience in case the identity is only available as a signer.
|
void |
OnchainSecretsRPC.createSkipchains(Darc writers)
Creates a new skipchain and sets up a new ocs-shard.
|
Darc |
OnchainSecrets.removeIdentityFromDarc(Darc darc,
Identity identity,
Signer signer,
int role)
Remove identity from an existing darc under the given role.
|
void |
OnchainSecretsRPC.updateDarc(Darc newAccount)
Updates an existing account or adds a new account to the skipchain.
|
| Constructor and Description |
|---|
Document(byte[] dataEncrypted,
byte[] keyMaterial,
byte[] dataPublic,
Darc readers)
Initialises a document.
|
Document(byte[] dataEncrypted,
byte[] keyMaterial,
byte[] dataPublic,
Darc readers,
WriteRequestId writeRequestId)
Initialises a document.
|
Document(byte[] data,
int keylen,
Darc readers)
Convenience method without the public data.
|
Document(byte[] data,
int keylen,
Darc readers,
byte[] dataPublic)
Creates a new document from data, creates a new Darc, a symmetric
symmetricKey and encrypts the data using CBC-RSA.
|
OnchainSecrets(Roster roster,
Darc admin)
Creates a new OnchainSecrets class and creates a new skipchain.
|
WriteRequest(byte[] dataEnc,
byte[] keyMaterial,
Darc owner,
byte[] extraData)
Create a new document by giving all possible parameters.
|
WriteRequest(byte[] data,
int keylen,
Darc owner)
Creates a new document from data, creates a new Darc, a symmetric
symmetricKey and encrypts the data using CBC-RSA.
|
WriteRequest(String data,
int keylen,
Darc owner)
Overloaded constructor for WriteRequest, but taking a string rather than
an array of bytes.
|
Copyright © 2018. All rights reserved.