Function signAndEncodeEntry

  • Signs and encodes an Bamboo entry for the given payload and key pair.

    Returns

    Hexadecimal encoded entry

    Example

    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);

    Parameters

    • entry: EntryArgs

      Arguments to create the entry

    • keyPair: KeyPair

      Key pair to sign the entry with

    Returns string

Generated using TypeDoc