示例#1
0
        public static bool VerifyPrivateKey(byte[] privateKey)
        {
            bool result = IsWindows
                ? Win64Lib.secp256k1_ec_seckey_verify(Context, privateKey)
                : PosixLib.secp256k1_ec_seckey_verify(Context, privateKey);

            return(result);
        }
示例#2
0
        public static bool VerifyPrivateKey(byte[] privateKey)
        {
            switch (Platform)
            {
            case OsPlatform.Windows:
                return(Win64Lib.secp256k1_ec_seckey_verify(Context, privateKey));

            case OsPlatform.Linux:
                return(PosixLib.secp256k1_ec_seckey_verify(Context, privateKey));

            case OsPlatform.Mac:
                return(MacLib.secp256k1_ec_seckey_verify(Context, privateKey));
            }

            throw new InvalidOperationException("Unsupported platform.");
        }