Ejemplo n.º 1
0
        public Base58Address(byte[] bytes)
        {
            AddressBytes = bytes;

            var at = GetNetworkAndType();

            Network     = at.Item1;
            AddressType = at.Item2;
        }
Ejemplo n.º 2
0
        public Base58Address(string addr)
        {
            Network = AddressNetwork.Unknown;

            var db = Base58.Decode(addr);

            if (!Base58.ValidateChecksum(db))
            {
                throw new Exception("Checksum failed");
            }

            AddressBytes = db;

            var t = GetNetworkAndType();

            Network     = t.Item1;
            AddressType = t.Item2;
        }
Ejemplo n.º 3
0
 public Base58Address(AddressNetwork net, Base58AddressType addr_type, byte[] bytes)
 {
     Network      = net;
     AddressType  = addr_type;
     AddressBytes = bytes;
 }