BitSharper.EcKey.FromAsn1 C# (CSharp) Method

FromAsn1() public static method

Construct an ECKey from an ASN.1 encoded private key. These are produced by OpenSSL and stored by the BitCoin reference implementation in its wallet.
public static FromAsn1 ( byte asn1PrivKey ) : EcKey
asn1PrivKey byte
return EcKey
        public static EcKey FromAsn1(byte[] asn1PrivKey)
        {
            return new EcKey(ExtractPrivateKeyFromAsn1(asn1PrivKey));
        }