Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow_utils/src/encoding/types.ts>EncodingScheme

TypeScript typings and utilities for the Willow protocol.
Latest
type alias EncodingScheme
import { type EncodingScheme } from "https://deno.land/x/willow_utils@1.0.0/src/encoding/types.ts";

A scheme for encoding and decoding values of ValueType.

definition: { encode: (value: ValueType) => Uint8Array; decode: (encoded: Uint8Array) => ValueType; encodedLength: (value: ValueType) => number; decodeStream: StreamDecoder<ValueType>; }