@bicycle-codes/crypto-util
    Preparing search index...

    Function sign

    Sign the given message. Return the signature as an ArrayBuffer.

    • Parameters

      • msg: Msg
      • privateKey: CryptoKey
      • Optional__namedParameters: { format: "base64" }
      • OptionalcharSize: CharSize
      • OptionalhashAlg: HashAlg

      Returns Promise<string>

    • Parameters

      • msg: Msg
      • privateKey: CryptoKey
      • __namedParameters: { format: "raw" }
      • OptionalcharSize: CharSize
      • OptionalhashAlg: HashAlg

      Returns Promise<ArrayBuffer>