Signs and encodes an Bamboo entry for the given payload and key pair.
Hexadecimal encoded entry
import { KeyPair, signAndEncodeEntry, encodeOperation } from 'p2panda-js';const keyPair = new KeyPair();const operation = encodeOperation({ schemaId: 'venues_0020c9db3376fa753b041e199ebfe1c0e6dfb50ca7924c7eedfdd35f141ac8d1207c', fields: { name: 'Klangkeller', },});const entry = signAndEncodeEntry({ logId: 2, operation,}, keyPair);
Arguments to create the entry
Key pair to sign the entry with
Generated using TypeDoc
Signs and encodes an Bamboo entry for the given payload and key pair.
Returns
Hexadecimal encoded entry
Example