CCC Docs
    Preparing search index...

    Function messageHashDogeEcdsa

    • Computes the message hash for Dogecoin ECDSA signatures. This function follows the Dogecoin message signing standard, which involves prefixing the message with a magic string and its length, then double SHA256 hashing the result.

      Parameters

      • message: BytesLike

        The message to be hashed. Can be a string or BytesLike.

      • OptionalmessagePrefix: BytesLike

        Optional. A custom prefix to use instead of the default "\x19Dogecoin Signed Message:\n".

      Returns Bytes

      The Dogecoin hash of the prefixed message as Bytes.