コード例 #1
0
        public static bool VerifyMessage(this BitcoinWitPubKeyAddress address, uint256 messageHash, byte[] signature)
        {
            PubKey pubKey = PubKey.RecoverCompact(messageHash, signature);

            return(pubKey.WitHash == address.Hash);
        }
コード例 #2
0
 public PubKey RecoverPubKey(uint256 hash)
 {
     return(PubKey.RecoverCompact(hash, this));
 }