Expand description
RE crypto library
Macros§
Structs§
- Bls12381
G1Private Key - Bls12381
G1Public Key - Represents a BLS12-381 G1 public key.
- Bls12381
G2Signature - Represents a BLS12-381 G2 signature (variant with 96-byte signature and 48-byte public key)
- Ed25519
Private Key - Ed25519
Public Key - Represents an ED25519 public key.
- Ed25519
Public KeyHash - Ed25519
Signature - Represents an ED25519 signature.
- Hash
- Represents a 32-byte hash digest.
- Hash
Accumulator - Represents a 32-byte hash accumulator.
- Secp256k1
Public Key - Represents a compressed ECDSA Secp256k1 public key, which is the default format used in the Radix stack.
- Secp256k1
Public KeyHash - Secp256k1
Signature - Represents an ECDSA Secp256k1 signature.
- Secp256k1
Uncompressed Public Key - Represents an uncompressed ECDSA Secp256k1 public key.
Enums§
- Parse
BlsPublic KeyError - Represents an error when retrieving BLS public key from hex or when aggregating.
- Parse
BlsSignature Error - Represents an error when retrieving BLS signature from hex or when aggregating.
- Parse
Ed25519 Public KeyError - Represents an error when parsing ED25519 public key from hex.
- Parse
Ed25519 Signature Error - Parse
Hash Error - Represents an error when parsing hash.
- Parse
Secp256k1 Public KeyError - Represents an error when parsing ED25519 public key from hex.
- Parse
Secp256k1 Signature Error - Public
Key - Represents any natively supported public key.
- Public
KeyHash - The hash of a given public key.
Constants§
- BLS12381_
CIPHERSITE_ V1 - BLS12-381 ciphersuite v1 It has following parameters
Traits§
Functions§
- aggregate_
verify_ bls12381_ v1 - Performs BLS12-381 G2 aggregated signature verification of multiple messages each signed with different key. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
- blake2b_
256_ hash - fast_
aggregate_ verify_ bls12381_ v1 - Performs BLS12-381 G2 aggregated signature verification one message signed with multiple keys. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_ This method validates provided input keys when aggregating.
- fast_
aggregate_ verify_ bls12381_ v1_ anemone - Performs BLS12-381 G2 aggregated signature verification
one message signed with multiple keys.
Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
This method does not validate provided input keys when aggregating,
it is left here for backward compatibility.
It is recommended to use
fast_aggregate_verify_bls12381_v1()
method instead. - hash
- Computes the hash digest of a message.
- hash_
public_ key_ bytes - keccak256_
hash - verify_
bls12381_ v1 - Performs BLS12-381 G2 signature verification. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
- verify_
ed25519