Skip to main content

@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

NameType
configData?ConfigData

Returns

AuthenticityClient

Defined in

client/authenticity.ts:27

Properties

bridge

Private bridge: BloockBridge

Defined in

client/authenticity.ts:20


configData

Private configData: ConfigData

Defined in

client/authenticity.ts:21

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

client/authenticity.ts:37


getSignatures

getSignatures(record): Promise<Signature[]>

Gets the signatures associated with a Bloock record.

Parameters

NameType
recordRecord

Returns

Promise<Signature[]>

Defined in

client/authenticity.ts:105


sign

sign(record, signer): Promise<Signature>

Signs a Bloock record using the specified signer.

Parameters

NameType
recordRecord
signerSigner

Returns

Promise<Signature>

Defined in

client/authenticity.ts:60


verify

verify(record): Promise<boolean>

Verifies the authenticity of a Bloock record.

Parameters

NameType
recordRecord

Returns

Promise<boolean>

Defined in

client/authenticity.ts:83