Exemplo n.º 1
0
        public static string ToZPrv(this ExtKey extKey, Network network)
        {
            var data    = extKey.ToBytes();
            var version = (network == Network.Main)
                                ? new byte[] { (0x04), (0xB2), (0x43), (0x0C) }
                                : new byte[] { (0x04), (0x5F), (0x18), (0xBC) };

            return(Encoders.Base58Check.EncodeData(version.Concat(data).ToArray()));
        }
 /// <summary>
 /// Constructor. Creates a representation of an extended key, within the specified network.
 /// </summary>
 public BitcoinExtKey(ExtKey key, Network network)
     : base(key.ToBytes(), network)
 {
 }