Type alias Codec

Codec: {
    name: CodecName;
    prefix: Buffer;
    pubkeyLength: number;
}

The codec indicating the key type of the provided public keys. This is a byte array using varint encoding that corresponds to a multicodec value indicating a key type. The default value is 0xed01 which corresponds to ed25519 public keys.

Type declaration

  • name: CodecName
  • prefix: Buffer
  • pubkeyLength: number