FROST secp256k1-TR (Taproot) TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

      FROST secp256k1-TR (Taproot) TypeScript Library - v0.2.2-alpha.3

      FROST(secp256k1, SHA-256) Taproot - A Schnorr signature scheme over secp256k1 that supports FROST threshold signatures compatible with BIP-340 (Schnorr) and BIP-341 (Taproot).

      This module provides a complete implementation of the FROST ciphersuite for the secp256k1 group with SHA-256 as the hash function, with modifications for Taproot compatibility:

      • BIP-340 tagged hashes for challenge computation
      • BIP-341 Taproot key tweaking
      • x-only public key format (32 bytes)
      • 64-byte signature serialization (x-only R point + z)
      • EvenY trait for ensuring public keys have even Y coordinate
      • Tweak trait for applying Taproot tweaks

      Namespaces

      keys
      round1
      round2
      keys

      Classes

      IdentifierImpl
      SigningShareImpl
      VerifyingShareImpl
      CoefficientCommitmentImpl
      VerifiableSecretSharingCommitmentImpl
      SecretShareImpl
      KeyPackageImpl
      PublicKeyPackageImpl
      NonceImpl
      NonceCommitmentImpl
      SigningNoncesImpl
      SigningCommitmentsImpl
      SigningPackageImpl
      FieldError
      GroupError
      FrostError
      SignatureImpl
      SigningKeyImpl
      VerifyingKeyImpl
      SignatureShareImpl

      Interfaces

      RandomSource
      Field
      Group
      Ciphersuite
      RandomizedCiphersuite
      Secp256K1Sha256TRImpl
      EvenY
      Tweak
      JsonHeader
      SigningCommitmentsJson
      SigningPackageJson
      SignatureShareJson
      SecretShareJson
      KeyPackageJson
      PublicKeyPackageJson
      Round1PackageJson
      Round2PackageJson

      Type Aliases

      S
      Identifier
      Signature
      SigningKey
      VerifyingKey
      GroupCommitment
      SigningPackage
      SigningNonces
      SigningCommitments
      NonceCommitment
      SignatureShare
      KeyPackage
      PublicKeyPackage
      SecretShare
      SigningShare
      VerifyingShare
      VerifiableSecretSharingCommitment
      IdentifierList

      Variables

      Secp256K1ScalarField
      Secp256K1Group
      Secp256K1Sha256TR
      CIPHERSUITE_NAME
      DEFAULT_HEADER

      Functions

      hasEvenY
      intoEvenY
      negateScalarIfOddY
      tweak
      tweakPublicKey
      tweakSigningShare
      negateNonces
      intoEvenYKeyPackage
      intoEvenYPublicKeyPackage
      tweakKeyPackage
      tweakPublicKeyPackage
      aggregate
      aggregateWithTweak
      taprootTaggedHash
      taprootTweak
      applyTaprootTweak
      toXOnlyPublicKey
      hasEvenYPublicKey
      bytesToHex
      hexToBytes
      validateHeader
      signingCommitmentsToJson
      signingCommitmentsFromJson
      signingPackageToJson
      signingPackageFromJson
      signatureShareToJson
      signatureShareFromJson
      secretShareToJson
      secretShareFromJson
      keyPackageToJson
      keyPackageFromJson
      publicKeyPackageToJson
      publicKeyPackageFromJson
      round1PackageToJson
      round1PackageFromJson
      round2PackageToJson
      round2PackageFromJson

      References

      Error → FrostError