Variable publicKeyConst

publicKey: FixedSizeBeet<PublicKey> = ...

De/Serializer for bbachain PublicKeys aka publicKey.

Using PublicKey Directly

import { publicKey } from '@bbachain/beet-bbachain'

const generatedKey = Keypair.generate().publicKey
const buf = Buffer.alloc(publicKey.byteSize)
beet.write(buf, 0, generatedKey)
beet.read(buf, 0) // same as generatedKey

PublicKey as part of a Struct Configuration

import { publicKey } from '@bbachain/beet-bbachain'

type InstructionArgs = {
authority: web3.PublicKey
}

const createStruct = new beet.BeetArgsStruct<InstructionArgs>(
[
['authority', publicKey]
],
'InstructionArgs'
)

Generated using TypeDoc