curby-js-client
CtrlK
  • index
  • classes
    • Client
    • DIRNGClient
    • InvalidPrecom
  • functions
    • byteHelper
    • checkValidPrecommitmentValue
    • extractRandomness
    • getPrecommitmentValue
    • pulsesToRoundData
    • timeToNext
    • usesDeterministicAlgorithm
    • validateBellResponse
    • validateSeed
    • validateSeedOrdering
    • wait
    • withValidations
    • xorArrays
    • zip
  • interfaces
    • ByteHelper
  • type-aliases
    • ClientOptions
    • DIRNGClientOptions
    • LatestPulsePair
    • NumberArray
    • PulsePair
    • RandomnessRound
    • RoundData
    • RoundValidations
    • Validation
    • WaitOptions
  • variables
    • CHAINS
    • CURBY_API_URL
Powered by GitBook
On this page
  • Function: checkValidPrecommitmentValue()
  • Parameters
  • Returns
  • Defined in
  1. functions

checkValidPrecommitmentValue

@buff-beacon-project/curby-client • Docs


@buff-beacon-project/curby-client / checkValidPrecommitmentValue

Function: checkValidPrecommitmentValue()

checkValidPrecommitmentValue(pulse, previous, hasher): Promise<boolean>

Check if a precommitment value is valid

Parameters

Parameter
Type
Default value

pulse

Pulse

undefined

previous

Pulse

undefined

hasher

Hasher<"sha3-512", 20>

sha3512

Returns

Promise<boolean>

Defined in

src/extract-randomness.ts:83

PreviousbyteHelperNextextractRandomness

Last updated 7 months ago