Closed Evanfeenstra closed 11 months ago
u64
type Bytes = Uint8Array; interface Args { seed: Bytes; // 32 bytes network: string; // "bitcoin" or "regtest" policy: Policy; velocity?: Velocity; allowlist: string[]; timestamp: number; // unix ts in seconds lss_nonce: Bytes; // random 32 bytes } type State = { [k: string]: Bytes }; interface VlsResponse { topic: string; vls_bytes?: Bytes; lss_bytes?: Bytes; sequence: number; state?: Bytes; // Map of strings to bytes, serialized with msgpack }
u64
is appended to the byte array as 8 bytes.