Interface
FtKeyStore
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: BufferisInteractive
isInteractive: booleanInherited from KeyStore.isInteractive
pubKey
pubKey: BufferMethods
createKeyHandler
createKeyHandler(authDescriptor: AnyAuthDescriptor): KeyHandlerCreates a KeyHandler instance from this KeyStore instance
Parameters
- authDescriptor: AnyAuthDescriptor
the auth descriptor to use with the KeyHandler
Returns KeyHandler
Inherited from KeyStore.createKeyHandler
- authDescriptor: AnyAuthDescriptor
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- transaction: RawGtx | GTX