Пример #1
0
        private async Task SignBlockAsync(Block block)
        {
            block.Header.SignerPubkey = ByteString.CopyFrom(await _accountService.GetPublicKeyAsync());
            var signature = await _accountService.SignAsync(block.GetHash().DumpByteArray());

            block.Header.Signature = ByteString.CopyFrom(signature);
        }
Пример #2
0
        private async Task SignAsync(Transaction notSignerTransaction)
        {
            var signature = await _accountService.SignAsync(notSignerTransaction.GetHash().DumpByteArray());

            notSignerTransaction.Signature = ByteString.CopyFrom(signature);
        }