Digest
Composite 15 v393sp_runtime::generic::digest::Digest
About This Type
Structured type: Digest.
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)
| # | Name | Type |
|---|---|---|
| 0 | logs | Vec<DigestItem> |
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 = logs: Vec<DigestItem>
0x<field0>field 0 logs: Vec<DigestItem>Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Digest
const value = registry.createType("Digest", {
logs: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 15
- Kind
- Composite
- Path
- sp_runtime::generic::digest::Digest
- Runtime
- v393