KeySet

Git Source

Functions

serialize

Serialize KeysetCommitment.

function serialize(KeysetCommitment memory self) internal pure returns (bytes memory);

Parameters

NameTypeDescription
selfKeysetCommitmentKeysetCommitment.

Returns

NameTypeDescription
<none>bytesCompressed serialized bytes of KeysetCommitment.

hash_commitment

Hash commitment to BLS12-377 G2 element.

function hash_commitment(KeysetCommitment memory self) internal view returns (Bls12G2 memory);

Parameters

NameTypeDescription
selfKeysetCommitmentKeysetCommitment.

Returns

NameTypeDescription
<none>Bls12G2Bls12G2 point.