Interface ArkPsbtFieldCoder<T>

ArkPsbtFieldCoder is the coder for the ark psbt fields. each type has its own coder.

interface ArkPsbtFieldCoder<T> {
    decode: (value: [StructInput<{}>, Bytes]) => null | T;
    encode: (value: T) => [StructInput<{}>, Bytes];
    key: ArkPsbtFieldKey;
}

Type Parameters

  • T

Properties

Properties

decode: (value: [StructInput<{}>, Bytes]) => null | T
encode: (value: T) => [StructInput<{}>, Bytes]