@lightprotocol/stateless.js - v0.22.1-alpha.1
Other Libraries
Documentation
GitHub
Preparing search index...
hashToBn254FieldSizeBe
Function hashToBn254FieldSizeBe
hashToBn254FieldSizeBe
(
bytes
:
Buffer
)
:
[
Buffer
<
ArrayBufferLike
>
,
number
]
|
null
/**
Hash the provided
bytes
with Keccak256 and ensure the result fits in the
BN254 prime field by repeatedly hashing the inputs with various "bump seeds"
and truncating the resulting hash to 31 bytes.
Parameters
bytes
:
Buffer
Returns
[
Buffer
<
ArrayBufferLike
>
,
number
]
|
null
Deprecated
Use
hashvToBn254FieldSizeBe
instead.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Other Libraries
Documentation
GitHub
@lightprotocol/stateless.js - v0.22.1-alpha.1
Loading...
/**
byteswith Keccak256 and ensure the result fits in the