@bloock/sdk / AuthenticityClient
Class: AuthenticityClient
Represents a client for interacting with the Bloock Authenticity service.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AuthenticityClient(configData?
): AuthenticityClient
Creates a new instance of the AuthenticityClient with default configuration.
Parameters
Name | Type |
---|---|
configData? | ConfigData |
Returns
Defined in
Properties
bridge
• Private
bridge: BloockBridge
Defined in
configData
• Private
configData: ConfigData
Defined in
Methods
generateEcdsaKeyPair
▸ generateEcdsaKeyPair(): Promise
<KeyPair
>
Generates ECDSA key pair for signing records.
Returns
Promise
<KeyPair
>
An object containing both the public and the private key
Deprecated
Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
Defined in
getSignatures
▸ getSignatures(record
): Promise
<Signature
[]>
Gets the signatures associated with a Bloock record.
Parameters
Name | Type |
---|---|
record | Record |
Returns
Promise
<Signature
[]>
Defined in
sign
▸ sign(record
, signer
): Promise
<Signature
>
Signs a Bloock record using the specified signer.
Parameters
Name | Type |
---|---|
record | Record |
signer | Signer |
Returns
Promise
<Signature
>
Defined in
verify
▸ verify(record
): Promise
<boolean
>
Verifies the authenticity of a Bloock record.
Parameters
Name | Type |
---|---|
record | Record |
Returns
Promise
<boolean
>