| Package | Description |
|---|---|
| ch.epfl.dedis.lib.darc | |
| ch.epfl.dedis.ocs |
| Modifier and Type | Class and Description |
|---|---|
class |
IdentityDarc |
class |
IdentityEd25519 |
class |
IdentityX509EC
IdentityX509EC 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 | Field and Description |
|---|---|
List<Identity> |
Darc.owners |
| Modifier and Type | Method and Description |
|---|---|
Identity |
Signer.getIdentity()
Returns an identity of the signer.
|
Identity |
SignerEd25519.getIdentity()
Creates an identity of the signer.
|
Identity |
SignerX509EC.getIdentity()
Creates an identity of the signer.
|
Identity |
SignaturePath.getSigner()
Returns the signer of this signature.
|
static Identity |
IdentityFactory.New(Darc darc)
Creates the corresponding identity to a darc.
|
static Identity |
IdentityFactory.New(DarcOCSProto.Identity proto)
Returns an instantiated identity that is stored in proto.
|
static Identity |
IdentityFactory.New(Signer signer)
Creates the corresponding identity to a signer.
|
| Modifier and Type | Method and Description |
|---|---|
List<Identity> |
Darc.getOwners()
Retrun copy of current owners of DARC
|
List<Identity> |
Darc.getUsers()
Return copy of current users of DARC (users/dacs who can execute this DARC)
|
| Modifier and Type | Method and Description |
|---|---|
void |
Darc.addOwner(Identity identity)
Adds a owner to the list of allowed signers.
|
void |
Darc.addUser(Identity identity)
Adds a user to the list of allowed signers.
|
void |
Darc.removeOwner(Identity identity) |
void |
Darc.removeUser(Identity identity) |
| Constructor and Description |
|---|
Darc(Identity owner,
List<Identity> users,
byte[] data)
Initialize a darc by giving an owner that is allowed to evolve the darc
and a list of users allowed to sign actions on behalf of that darc.
|
SignaturePath(List<Darc> darcPath,
Identity signer,
int role)
The role is the final role this signature should be used.
|
| Constructor and Description |
|---|
Darc(Identity owner,
List<Identity> users,
byte[] data)
Initialize a darc by giving an owner that is allowed to evolve the darc
and a list of users allowed to sign actions on behalf of that darc.
|
Darc(List<Identity> owners,
List<Identity> users,
byte[] data)
Initialize a darc by giving an owner that is allowed to evolve the darc
and a list of users allowed to sign actions on behalf of that darc.
|
Darc(List<Identity> owners,
List<Identity> users,
byte[] data)
Initialize a darc by giving an owner that is allowed to evolve the darc
and a list of users allowed to sign actions on behalf of that 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.
|
SignaturePath |
OnchainSecretsRPC.getDarcPath(DarcId base,
Identity identity,
int role)
Gets a darc-path starting from the base to the identity given.
|
Darc |
OnchainSecrets.removeIdentityFromDarc(Darc darc,
Identity identity,
Signer signer,
int role)
Remove identity from an existing darc under the given role.
|
Copyright © 2018. All rights reserved.