Add a data hash to be signed. Returns false if the hash cannot be added because tree would get higher than allowed.
Namespace:
Guardtime.KSI.Service
Assembly:
ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntaxpublic bool Add(
DataHash dataHash,
IdentityMetadata metadata = null,
uint level = 0
)
Public Function Add (
dataHash As DataHash,
Optional metadata As IdentityMetadata = Nothing,
Optional level As UInteger = 0
) As Boolean
public:
bool Add(
DataHash^ dataHash,
IdentityMetadata^ metadata = nullptr,
unsigned int level = 0
)
member Add :
dataHash : DataHash *
?metadata : IdentityMetadata *
?level : uint32
(* Defaults:
let _metadata = defaultArg metadata null
let _level = defaultArg level 0
*)
-> bool
Parameters
- dataHash
- Type: Guardtime.KSI.HashingDataHash
Data hash to be added - metadata (Optional)
- Type: Guardtime.KSI.ServiceIdentityMetadata
Metadata to be added together with data hash - level (Optional)
- Type: SystemUInt32
the level value of the aggregation tree node
Return Value
Type:
Booleanfalse if data hash cannot be added because tree would get higher than allowed, true otherwise.
See Also