예제 #1
0
 public UnencryptedMessage(byte[] messageBytes, bool messageIsText = false)
 {
     MessageBytes = messageBytes;
     MessageText  = messageIsText
         ? Encoding.UTF8.GetString(messageBytes, 0, messageBytes.Length)
         : ByteToHexStringConverter.ToHexString(messageBytes);
     MessageIsText = messageIsText;
 }
 public MessageToBeEncryptedToSelf(IEnumerable <byte> messageBytes, bool compress)
     : base(ByteToHexStringConverter.ToHexString(messageBytes), false, compress)
 {
 }
 public MessageToBeEncrypted(IEnumerable <byte> messageBytes, bool compressMessage, bool isPrunable = false)
     : base(ByteToHexStringConverter.ToHexString(messageBytes), false, compressMessage, isPrunable)
 {
 }
 public UnencryptedMessage(IEnumerable <byte> messageBytes, bool isPrunable = false)
 {
     MessageIsText = false;
     Message       = ByteToHexStringConverter.ToHexString(messageBytes);
     IsPrunable    = isPrunable;
 }
예제 #5
0
 public BinaryHexString(IEnumerable <byte> data)
 {
     _hexData = ByteToHexStringConverter.ToHexString(data);
 }
예제 #6
0
 public async Task <VerifyPrunableMessageReply> VerifyPrunableMessage(ulong transactionId,
                                                                      IEnumerable <byte> message, ulong?requireBlock = null, ulong?requireLastBlock = null)
 {
     return(await VerifyPrunableMessage(transactionId, ByteToHexStringConverter.ToHexString(message),
                                        false, requireBlock, requireLastBlock));
 }