Verification functions

# Name Description Complexity
1 checkMerkleProof(ByteVector, ByteVector, ByteVector): Boolean Verifies if a tree of hashes is part of the Merkle tree. The blake2b256 function is used for hashing the Merkle tree. 30
2 isDefined(List[T]|Unit): Boolean Checks if a value is not Unit 1
3 rsaVerify(digestAlgorithmType, ByteVector, ByteVector, ByteVector): Boolean Verifies an RSA signature 100
4 sigVerify(ByteVector, ByteVector, ByteVector): Boolean Verifies a Curve25519 signature 100

checkMerkleProof(ByteVector, ByteVector, ByteVector): Boolean

Verifies if a tree of hashes is part of the Merkle tree. The blake2b256 function is used for hashing the Merkle tree.

checkMerkleProof(merkleRoot: ByteVector, merkleProof: ByteVector, valueBytes: ByteVector): Boolean

Parameters

merkleRoot: ByteVector

The root hash of the Merkle tree.

merkleProof: ByteVector

The array of bytes of the Merkle tree proof.

valueBytes: ByteVector

The tree of hashes.

isDefined(List[T]|Unit): Boolean

Checks if a value is not Unit.

isDefined(a: List[T]|Unit): Boolean

Parameters

a: List[T]|Unit

The argument.

rsaVerify(digestAlgorithmType, ByteVector, ByteVector, ByteVector): Boolean

Verifies an RSA signature.

rsaVerify(digest: digestAlgorithmType, message: ByteVector, sig: ByteVector, pub: ByteVector): Boolean

Parameters

digest: digestAlgorithmType

The RSA algorithm.

message: ByteVector

The message.

sig: ByteVectore

The signature.

pub: ByteVectore

The public key.

sigVerify(ByteVector, ByteVector, ByteVector): Boolean

Verifies a Curve25519 signature.

sigVerify(message: ByteVector, sig: ByteVector, pub: ByteVector): Boolean

Parameters

message: ByteVector

The message.

sig: ByteVectore

The signature.

pub: ByteVectore

The account public key.

results matching ""

    No results matching ""