Exemple #1
0
        protected override async Task <ECDSASignature> SignExternallyAsync(byte[] bytes)
        {
            var message = new EthereumSignMessage
            {
                AddressNs = GetPath(),
                Message   = bytes
            };

            var messageSignature = await TrezorManager.SendMessageAsync <EthereumMessageSignature, EthereumSignMessage>(message);

            return(ECDSASignatureFactory.ExtractECDSASignature(messageSignature.Signature));
        }
 public static EthECDSASignature ExtractECDSASignature(string signature)
 {
     return(new EthECDSASignature(ECDSASignatureFactory.ExtractECDSASignature(signature)));
 }