| Modifier and Type | Method and Description |
|---|---|
boolean |
Proof.exists(byte[] key)
Check whether the key exists in the proof.
|
static Instance |
Instance.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Creates an instance given an id and a Byzcoin service.
|
Block |
ByzCoinRPC.getBlock(SkipblockId id)
Fetches a given block from the skipchain and returns the corresponding Block.
|
Sha256id |
Block.getClientTransactionHash() |
Proof |
ByzCoinRPC.getProof(InstanceId id)
Gets a proof from byzcoin to show that a given instance is stored in the
global state.
|
Sha256id |
Block.getStateChangesHash() |
Sha256id |
Block.getTrieRoot() |
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.
|
DataBody(ByzCoinProto.DataBody proto)
Constructor for DataBody from protobuf.
|
Proof(ByzCoinProto.Proof p,
SkipblockId scID,
InstanceId iid)
Creates a new proof given a protobuf-representation and a trusted skipchain ID.
|
StateChangeBody(ByzCoinProto.StateChangeBody proto)
Construct a StateChangeBody object from its protobuf representation.
|
| Modifier and Type | Method and Description |
|---|---|
static ChainConfigInstance |
ChainConfigInstance.fromByzcoin(ByzCoinRPC bc)
Instantiates a new ChainConfigInstance given a working byzcoin service.
|
void |
ChainConfigInstance.update()
Updates the value by getting the latest instance and updating it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Instruction.signWith(byte[] ctxHash,
List<Signer> signers)
Have a list of signers sign the instruction.
|
void |
ClientTransaction.signWith(List<Signer> signers)
This function signs all the instructions in the transaction using the same set of
signers.
|
| Constructor and Description |
|---|
ClientTransactionId(byte[] id) |
TxResult(ByzCoinProto.TxResult proto)
constructor for TxResult
|
| Modifier and Type | Method and Description |
|---|---|
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.encryptData(byte[] data,
byte[] keyMaterial)
Encrypts the data using the encryption defined in the header.
|
byte[] |
DecryptKeyReply.extractKeyMaterial(Scalar reader)
Recover the key material by decrypting each slice and merging all the slices.
|
static WriteData |
WriteData.fromByzcoin(ByzCoinRPC bc,
InstanceId id)
Recreates a WriteData from an instanceid.
|
static Document |
Document.fromWriteInstance(WriteInstance wi,
byte[] keyMaterial)
Recreate the document once all the material already is fetched from ByzCoin.
|
Proof |
LTSInstance.getProofAndVerify()
Retrieves and verifies the proof for this instance.
|
| Constructor and Description |
|---|
KeyIv(byte[] keyMaterial)
Construct KeyIV from some keyMaterial, which is the concatenation of IV and Key.
|
LTSId(byte[] id) |
LTSId(com.google.protobuf.ByteString bs) |
| Modifier and Type | Method and Description |
|---|---|
Roster |
SkipBlock.getRoster()
Gets the roster from the skipblock.
|
SkipblockId |
SkipBlock.getSkipchainId() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Ed25519Point.data() |
byte[] |
Point.data() |
boolean |
Mask.keyEnabled(Point p)
Checks whether the index, corresponding to the given key, is enabled in the mask or not.
|
| Constructor and Description |
|---|
Ed25519Point(byte[] b) |
Ed25519Point(String str) |
Mask(List<Point> publics,
byte[] mask)
Create a read-only mask from a set of public keys and the given bitmask.
|
SchnorrSig(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
void |
Darc.addIdentity(String action,
Identity id,
String link)
Add a rule to the Darc.
|
| Constructor and Description |
|---|
Darc(byte[] buf)
Convenience constructure
|
Darc(DarcProto.Darc proto)
Convenience constructor
|
Signature(DarcProto.Signature sig) |
| Modifier and Type | Method and Description |
|---|---|
SkipblockId |
ForwardLink.getFrom() |
SkipblockId |
ForwardLink.getTo() |
List<SkipBlock> |
SkipchainRPC.getUpdateChain()
Returns a list of blocks block and verify that the links are correct.
|
List<SkipBlock> |
SkipchainRPC.getUpdateChain(SkipblockId trustedLatest)
Returns a list of blocks block and verify that the links are correct.
|
Copyright © 2019. All rights reserved.