T - type of the created signatures.public interface BlockSigner<T>
Methods add(DataHash, long, IdentityMetadata),
add(DataHash, long, IdentityMetadata) and/or add(DataHash)
can be used to add new input hash to the block signer. Method sign() must be
called to get the final signatures.
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(DataHash dataHash)
Adds a new hash to the signer.
|
boolean |
add(DataHash dataHash,
IdentityMetadata metadata)
Adds a new hash and metadata to the signer.
|
boolean |
add(DataHash dataHash,
long level,
IdentityMetadata metadata)
Adds a new hash, level, and metadata to the signer.
|
T |
sign()
Creates a block of multiple signatures.
|
boolean add(DataHash dataHash) throws KSIException
dataHash - data hash to be added.KSIExceptionboolean add(DataHash dataHash, IdentityMetadata metadata) throws KSIException
dataHash - data to be added.metadata - metadata to be added.KSIExceptionboolean add(DataHash dataHash, long level, IdentityMetadata metadata) throws KSIException
dataHash - data hash to be added.level - level to be added.metadata - metadata to be added.KSIExceptionT sign() throws KSIException
KSIExceptionCopyright © 2024 Guardtime. All rights reserved.