EquivocationProof

Composite 719 v393

sp_consensus_slots::EquivocationProof

About This Type

Structured type: EquivocationProof.

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 (4)

#NameType
0offenderPublic
1slotSlot
2first_headerHeader
3second_headerHeader

SCALE Encoding

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

Examples

Struct with 4 fields = offender: Public, slot: Slot, first_header: Header, second_header: Header
0x<field0><field1><field2><field3>
field 0 offender: Public
field 1 slot: Slot
field 2 first_header: Header
field 3 second_header: Header

Code Examples

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

const registry = new TypeRegistry();

// Encode EquivocationProof
const value = registry.createType("EquivocationProof", {
  offender: 0,
  slot: 0,
  first_header: 0,
  second_header: 0
});
console.log("Hex:", value.toHex());

Type Parameters

Header = Header
Id = Public

Referenced By (2)

Type Information

Type ID
719
Kind
Composite
Path
sp_consensus_slots::EquivocationProof
Runtime
v393