Signing
This is the base step for assuring data/document authenticity. Before starting, make sure to choose from one of the Supported methods that BLOOCK provides.
Javascript
Java
Python
Golang
PHP
const { AuthenticityClient, EcdsaSigner, KeyClient, RecordClient, KeyType } = require("@bloock/sdk");
(async () => {
let keyClient = new KeyClient();
let authenticityClient = new AuthenticityClient();
let recordClient = new RecordClient();
let key = await keyClient.newLocalKey(KeyType.EcP256k);
let signedRecord = await recordClient.fromString("Hello world")
.withSigner(new EcdsaSigner(key))
.build();