BlockSigner Constructor (IKsiService, Boolean, Byte, HashAlgorithm, IKsiSignatureFactory, NullableUInt32)
|
Create new block signer instance
Namespace:
Guardtime.KSI.Service
Assembly:
ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntaxpublic BlockSigner(
IKsiService ksiService,
bool useBlindingMasks,
byte[] randomSeed,
HashAlgorithm hashAlgorithm = null,
IKsiSignatureFactory signatureFactory = null,
Nullable<uint> maxTreeHeight = null
)
Public Sub New (
ksiService As IKsiService,
useBlindingMasks As Boolean,
randomSeed As Byte(),
Optional hashAlgorithm As HashAlgorithm = Nothing,
Optional signatureFactory As IKsiSignatureFactory = Nothing,
Optional maxTreeHeight As Nullable(Of UInteger) = Nothing
)
public:
BlockSigner(
IKsiService^ ksiService,
bool useBlindingMasks,
array<unsigned char>^ randomSeed,
HashAlgorithm^ hashAlgorithm = nullptr,
IKsiSignatureFactory^ signatureFactory = nullptr,
Nullable<unsigned int> maxTreeHeight = nullptr
)
new :
ksiService : IKsiService *
useBlindingMasks : bool *
randomSeed : byte[] *
?hashAlgorithm : HashAlgorithm *
?signatureFactory : IKsiSignatureFactory *
?maxTreeHeight : Nullable<uint32>
(* Defaults:
let _hashAlgorithm = defaultArg hashAlgorithm null
let _signatureFactory = defaultArg signatureFactory null
let _maxTreeHeight = defaultArg maxTreeHeight null
*)
-> BlockSigner
Parameters
- ksiService
- Type: Guardtime.KSI.ServiceIKsiService
KSI service - useBlindingMasks
- Type: SystemBoolean
If true then blinding masks are used when aggregating - randomSeed
- Type: SystemByte
Random seed for for blinding masks - hashAlgorithm (Optional)
- Type: Guardtime.KSI.HashingHashAlgorithm
Hash algorithm to be used when creating aggregation hash chains. If null then defult is used. - signatureFactory (Optional)
- Type: Guardtime.KSI.SignatureIKsiSignatureFactory
KSI signature factory for creating uni-signatures. - maxTreeHeight (Optional)
- Type: SystemNullableUInt32
Max allowed aggregation tree height
See Also