예제 #1
0
 public bool VerifyAllowingOnlyLowS(byte[] hash, EthECDSASignature sig)
 {
     if (!sig.IsLowS)
     {
         return(false);
     }
     return(_ecKey.Verify(hash, sig.ECDSASignature));
 }
예제 #2
0
 public bool Verify(byte[] hash, EthECDSASignature sig)
 {
     return(_ecKey.Verify(hash, sig.ECDSASignature));
 }
예제 #3
0
 public static EthECKey RecoverFromSignature(EthECDSASignature signature, int recId, byte[] hash)
 {
     return(new EthECKey(ECKey.RecoverFromSignature(recId, signature.ECDSASignature, hash, false)));
 }
예제 #4
0
 public static EthECKey RecoverFromSignature(EthECDSASignature signature, byte[] hash, BigInteger chainId)
 {
     return(new EthECKey(ECKey.RecoverFromSignature(GetRecIdFromVChain(signature.V, chainId),
                                                    signature.ECDSASignature, hash, false)));
 }
예제 #5
0
 public static EthECKey RecoverFromSignature(EthECDSASignature signature, byte[] hash)
 {
     return(new EthECKey(ECKey.RecoverFromSignature(GetRecIdFromV(signature.V), signature.ECDSASignature, hash,
                                                    false)));
 }