Defined in: packages/hash/src/internal/scalar-hash.ts:29
Extends
Section titled “Extends”HashIdentity<Kind,Seed>
Type Parameters
Section titled “Type Parameters”Kind extends string
Output
Section titled “Output”Output
Seed extends number | bigint
Properties
Section titled “Properties”
readonlykind:Kind
Defined in: packages/hash/src/internal/scalar-hash.ts:18
Inherited from
Section titled “Inherited from”version
Section titled “version”
readonlyversion:string
Defined in: packages/hash/src/internal/scalar-hash.ts:19
Inherited from
Section titled “Inherited from”
readonlyseed:Seed
Defined in: packages/hash/src/internal/scalar-hash.ts:20
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”bytes()
Section titled “bytes()”bytes(
input):Output
Defined in: packages/hash/src/internal/scalar-hash.ts:33
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”Output
string()
Section titled “string()”string(
input):Output
Defined in: packages/hash/src/internal/scalar-hash.ts:34
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Output
uint32()
Section titled “uint32()”uint32(
input):Output
Defined in: packages/hash/src/internal/scalar-hash.ts:35
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Output
uint64()
Section titled “uint64()”uint64(
input):Output
Defined in: packages/hash/src/internal/scalar-hash.ts:36
Parameters
Section titled “Parameters”bigint
Returns
Section titled “Returns”Output
bytesInto()
Section titled “bytesInto()”bytesInto(
input,out):void
Defined in: packages/hash/src/internal/scalar-hash.ts:37
Parameters
Section titled “Parameters”Uint8Array
Uint32Array
Returns
Section titled “Returns”void
stringInto()
Section titled “stringInto()”stringInto(
input,out):void
Defined in: packages/hash/src/internal/scalar-hash.ts:38
Parameters
Section titled “Parameters”string
Uint32Array
Returns
Section titled “Returns”void
uint32Into()
Section titled “uint32Into()”uint32Into(
input,out):void
Defined in: packages/hash/src/internal/scalar-hash.ts:39
Parameters
Section titled “Parameters”number
Uint32Array
Returns
Section titled “Returns”void
uint64Into()
Section titled “uint64Into()”uint64Into(
input,out):void
Defined in: packages/hash/src/internal/scalar-hash.ts:40
Parameters
Section titled “Parameters”bigint
Uint32Array
Returns
Section titled “Returns”void
create()
Section titled “create()”create():
HashState<Output>
Defined in: packages/hash/src/internal/scalar-hash.ts:41
Returns
Section titled “Returns”HashState<Output>
encode()
Section titled “encode()”encode(
output):Uint8Array
Defined in: packages/hash/src/internal/scalar-hash.ts:42
Parameters
Section titled “Parameters”output
Section titled “output”Output
Returns
Section titled “Returns”Uint8Array
encodeHex()
Section titled “encodeHex()”encodeHex(
output):string
Defined in: packages/hash/src/internal/scalar-hash.ts:43
Parameters
Section titled “Parameters”output
Section titled “output”Output
Returns
Section titled “Returns”string