Docs
chromia.com

Interface

FtKeyStore

On this page

Represents a key store which holds an ft key

interface FtKeyStore {
    id: Buffer;
    isInteractive: boolean;
    pubKey: Buffer;
    createKeyHandler(authDescriptor: AnyAuthDescriptor): KeyHandler;
    sign(
        transaction: RawGtx | GTX,
        merkleHashVersionSource: MerkleHashVersionSource,
    ): Promise<Buffer<ArrayBufferLike>>;
}

Hierarchy (View Summary)

Properties

id

id: Buffer

Inherited from KeyStore.id

isInteractive

isInteractive: boolean

Inherited from KeyStore.isInteractive

pubKey

pubKey: Buffer

Overrides FtSigner.pubKey

Methods

createKeyHandler

sign

  • sign(
        transaction: RawGtx | GTX,
        merkleHashVersionSource: MerkleHashVersionSource,
    ): Promise<Buffer<ArrayBufferLike>>

    Signs a transaction

    Parameters

    • transaction: RawGtx | GTX

      the transaction to sign

    • merkleHashVersionSource: MerkleHashVersionSource

      the source of the merkle hash version

    Returns Promise<Buffer<ArrayBufferLike>>

    the signed transaction, serialized to a Buffer