public Address(AddressType type, byte[] hash) { Debug.Assert(hash.Length == RAW_SIZE - 1); this.hash = hash; this.Type = type; Encoded = Address32Format.Encode(type, hash); Debug.Assert(Encoded != null); }
public void TestAddress32Format() { // Private 7r7oFxKhhaH7UvMLpUXlcIEk0WWx7i4nw6BVnrKCmLk= var address = "qyl68tygnjx6qqwrsmynmejmc9wxlw7almv3397j"; var hash = Address32Format.Decode(address, out var type); var encoded2 = Address32Format.Encode(type, hash); Assert.IsTrue(address == encoded2); }