OpaqueKeyOwnershipProof

Composite 718 v393

sp_consensus_babe::OpaqueKeyOwnershipProof

About This Type

Structured type: OpaqueKeyOwnershipProof.

A struct-like type where each field is encoded in declaration order.

Encoding: Fields encoded consecutively in declaration order, no field names or separators.

Fields (1)

#NameType
0(unnamed)Vec<u8>

SCALE Encoding

Rule
1 field encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 1 field = ?: Vec<u8>
0x<field0>
field 0 field0: Vec<u8>

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode OpaqueKeyOwnershipProof
const value = registry.createType("OpaqueKeyOwnershipProof", {
  field: 0
});
console.log("Hex:", value.toHex());

Referenced By (1)

Type Information

Type ID
718
Kind
Composite
Path
sp_consensus_babe::OpaqueKeyOwnershipProof
Runtime
v393