VrfVkey.ts
VrfVkey overview
Table of contents
arbitrary
arbitrary
FastCheck arbitrary for generating random VrfVkey instances.
Signature
export declare const arbitrary: FastCheck.Arbitrary<VrfVkey>Added in v2.0.0
encoding
toBytes
Encode VrfVkey to bytes.
Signature
export declare const toBytes: (a: VrfVkey, overrideOptions?: ParseOptions) => Uint8ArrayAdded in v2.0.0
toHex
Encode VrfVkey to hex string.
Signature
export declare const toHex: (a: VrfVkey, overrideOptions?: ParseOptions) => stringAdded in v2.0.0
parsing
fromBytes
Parse VrfVkey from bytes.
Signature
export declare const fromBytes: (i: Uint8Array, overrideOptions?: ParseOptions) => VrfVkeyAdded in v2.0.0
fromHex
Parse VrfVkey from hex string.
Signature
export declare const fromHex: (i: string, overrideOptions?: ParseOptions) => VrfVkeyAdded in v2.0.0
predicates
isVrfVkey
Check if the given value is a valid VrfVkey
Signature
export declare const isVrfVkey: (u: unknown, overrideOptions?: ParseOptions | number) => u is VrfVkeyAdded in v2.0.0
schemas
VrfVkey (class)
Schema for VrfVkey representing a VRF verification key. vrf_vkey = bytes .size 32 Follows the Conway-era CDDL specification.
Signature
export declare class VrfVkeyAdded in v2.0.0
toJSON (method)
Signature
toJSON()toString (method)
Signature
toString(): string[Inspectable.NodeInspectSymbol] (method)
Signature
[Inspectable.NodeInspectSymbol](): unknown[Equal.symbol] (method)
Signature
[Equal.symbol](that: unknown): boolean[Hash.symbol] (method)
Signature
[Hash.symbol](): numberutils
FromBytes
Signature
export declare const FromBytes: Schema.transform<
Schema.SchemaClass<Uint8Array, Uint8Array, never>,
Schema.SchemaClass<VrfVkey, VrfVkey, never>
>FromHex
Signature
export declare const FromHex: Schema.transform<
Schema.filter<Schema.Schema<Uint8Array, string, never>>,
Schema.transform<Schema.SchemaClass<Uint8Array, Uint8Array, never>, Schema.SchemaClass<VrfVkey, VrfVkey, never>>
>