package
0.0.0-20241001013243-835ba3a68ca7
Repository: https://github.com/cloudflare/pat-go.git
Documentation: pkg.go.dev
# Functions
BlindKeySign blinds the signing key by a blind and then produces a signature over the hashed input.
BlindKeySignWithContext blinds the signing key by a blind, with a context string, and then produces a signature over the hashed input.
BlindPublicKey blinds a public key using a private key pair and empty context string.
BlindPublicKeyWithContext blinds a public key using a private key pair and context string.
No description provided by the author
GenerateKey generates a public and private key pair.
MaybeReadByte reads a single byte from r with ~50% probability.
Sign signs a hash (which should be the result of hashing a larger message) using the private key, priv.
SignASN1 signs a hash (which should be the result of hashing a larger message) using the private key, priv.
UnblindPublicKey unblinds a public key using a private key pair and empty context string.
UnblindPublicKeyWithContext unblinds a public key using a private key pair and context string.
Verify verifies the signature in r, s of hash using the public key, pub.
VerifyASN1 verifies the ASN.1 encoded signature, sig, of hash using the public key, pub.
# Structs
PrivateKey represents an ECDSA private key.
PublicKey represents an ECDSA public key.