return signer.GenerateSignature();
}
- public CPubKey GetPubKey()
+ public CPubKey PubKey
{
- return new CPubKey(Public);
+ get { return new CPubKey(PublicBytes); }
}
/// <summary>
- /// Secret part of key pair
+ /// SecretBytes part of key pair
/// </summary>
- public IEnumerable<byte> Secret
+ public IEnumerable<byte> SecretBytes
{
get
{
public string ToHex()
{
- return Interop.ToHex(Secret);
+ return Interop.ToHex(SecretBytes);
}
public override string ToString()
List<byte> r = new List<byte>();
r.Add((byte)(128 + AddrType.PUBKEY_ADDRESS)); // Key version
- r.AddRange(Secret); // Key data
+ r.AddRange(SecretBytes); // Key data
return AddressTools.Base58EncodeCheck(r);
}