| Modifier and Type | Method and Description |
|---|---|
Block |
ByzCoinRPC.getBlock(SkipblockId id)
Fetches a given block from the skipchain and returns the corresponding Block.
|
Sha256id |
Block.getClientTransactionHash() |
Sha256id |
Block.getCollectionRoot() |
DarcId |
Proof.getDarcID() |
Sha256id |
Block.getStateChangesHash() |
static Darc |
ByzCoinRPC.makeGenesisDarc(Signer admin,
Roster roster)
Creates a genesis darc to use for the initialisation of Byzcoin.
|
| Constructor and Description |
|---|
Block(Proof p)
Constructor for the OmniBlock held in the given Proof.
|
Block(SkipBlock sb)
Instantiates a new OmniBlock given a skipblock.
|
| Modifier and Type | Method and Description |
|---|---|
Instruction |
DarcInstance.evolveDarcInstruction(Darc newDarc,
Signer owner,
int pos,
int len)
Creates an instruction to evolve the darc in byzcoin.
|
Instruction |
ValueInstance.evolveValueInstruction(byte[] newValue,
Signer owner,
int pos,
int len)
Creates an instruction to evolve the value in byzcoin.
|
Darc |
DarcInstance.getDarc() |
DarcId |
DarcInstance.getId() |
byte[] |
ValueInstance.getValue() |
Instruction |
DarcInstance.spawnInstanceInstruction(String contractID,
Signer s,
List<Argument> args,
int pos,
int len)
Creates an instruction for spawning an instance.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceId |
Instruction.deriveId(String what)
This function derives a contract ID from the instruction with the given string.
|
void |
Instruction.signBy(DarcId darcId,
List<Signer> signers)
Have a list of signers sign the instruction.
|
| Constructor and Description |
|---|
ClientTransactionId(byte[] id) |
| Modifier and Type | Method and Description |
|---|---|
CalypsoRPC |
CalypsoFactory.initialiseNewCalypso(Signer admin)
Create a new skipchain.
|
| Modifier and Type | Method and Description |
|---|---|
LTS |
CalypsoRPC.createLTS()
Create a long-term-secret (LTS) and retrieve its configuration.
|
static byte[] |
Encryption.decryptData(byte[] dataEnc,
byte[] keyMaterial)
This method decrypts the data using the same encryption-method
as is defined in the header of this class.
|
static byte[] |
Encryption.decryptData(com.google.protobuf.ByteString dataEnc,
byte[] keyMaterial)
Convenience method for use with googles-protobuf bytestring.
|
static byte[] |
Encryption.encryptData(byte[] data,
byte[] keyMaterial)
Encrypts the data using the encryption defined in the header.
|
static Document |
Document.fromWriteInstance(WriteInstance wi,
byte[] keyMaterial)
Recreate the document once all the material already is fetched from ByzCoin.
|
byte[] |
Document.getData() |
byte[] |
DecryptKeyReply.getKeyMaterial(Scalar reader)
Recover the key material by decrypting each slice and merging all the slices.
|
| Constructor and Description |
|---|
Document(byte[] data,
byte[] keyMaterial,
byte[] extraData,
DarcId publisherId)
Initialises a document.
|
Document(byte[] data,
int keylen,
byte[] extraData,
DarcId publisherId)
Creates a new document from data, creates a new Darc, a symmetric
symmetricKey and encrypts the data using CBC-RSA.
|
keyIv(byte[] keyMaterial) |
LTSId(byte[] id) |
LTSId(com.google.protobuf.ByteString bs) |
| Modifier and Type | Method and Description |
|---|---|
SkipblockId |
SkipBlock.getId() |
SkipblockId |
SkipBlock.getSkipchainId() |
| Constructor and Description |
|---|
Sha256id(byte[] id) |
Sha256id(com.google.protobuf.ByteString bs) |
SkipblockId(byte[] id) |
SkipblockId(com.google.protobuf.ByteString bs) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Ed25519Point.data() |
byte[] |
Point.data() |
static Point |
Ed25519Point.embed(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
void |
Darc.addIdentity(String action,
Identity id,
String link) |
Darc |
Darc.copy() |
Darc |
Darc.copyEvolve() |
DarcId |
Darc.getBaseId()
Gets the base-ID of the darc, i.e.
|
DarcId |
Darc.getId()
Calculate the getId of the darc by calculating the sha-256 of the invariant
parts which excludes the delegation-signature.
|
Identity |
Signer.getIdentity()
Returns an identity of the signer.
|
Identity |
SignerEd25519.getIdentity()
Creates an identity of the signer.
|
Identity |
Darc.getIdentity() |
Identity |
SignerX509EC.getIdentity()
Creates an identity of the signer.
|
Scalar |
Signer.getPrivate()
Returns the private key of the signer, or throws a NoPrivateKey exception.
|
Scalar |
SignerX509EC.getPrivate()
Returns the private key of the signer, or throws a CothorityCryptoException.
|
Point |
Signer.getPublic()
Returns the public key of the signer or throws a NoPublicKey exception.
|
Point |
SignerX509EC.getPublic()
Returns the public key of the signer, or throws a CothorityCryptoException.
|
void |
Darc.increaseVersion()
Updates the version of the darc and clears any eventual signatures from previous
evolutions.
|
static Identity |
IdentityFactory.New(Darc darc)
Creates the corresponding identity to a darc.
|
static Identity |
IdentityFactory.New(DarcProto.Identity proto)
Returns an instantiated identity that is stored in proto.
|
static Identity |
IdentityFactory.New(Signer signer)
Creates the corresponding identity to a signer.
|
void |
Darc.setPrevId(Darc d) |
static DarcId |
DarcId.zero()
Creates a darc ID with all zeros.
|
| Constructor and Description |
|---|
Darc(byte[] buf)
Convenience constructure
|
Darc(DarcProto.Darc proto)
Convenience constructor
|
DarcId(byte[] id)
Constructs a darc ID from a byte array.
|
DarcId(com.google.protobuf.ByteString id)
Constructs a darc ID from ByteString.
|
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
IdentityDarc(DarcProto.IdentityDarc proto)
Instantiates a IdentityDarc given its protobuf representation.
|
IdentityEd25519(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
IdentityX509EC(DarcProto.IdentityX509EC proto)
Creates an IdentityX509EC from a protobuf representation.
|
IdentityX509EC(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
Signature(DarcProto.Signature sig) |
| Modifier and Type | Method and Description |
|---|---|
SkipblockId |
ForwardLink.getFrom() |
SkipblockId |
ForwardLink.getTo() |
Copyright © 2018. All rights reserved.