简体   繁体   English

如何使用REST API Waves使用私钥签署交易?

[英]How can I sign a transaction with a private key using the REST API Waves?

How can I sign a transaction with a private key using the REST API for WavesPlatform blockchain? 如何使用针对WavesPlatform区块链的REST API使用私钥签署交易? Please, give you provide some examples? 请给你提供一些例子吗?

There are 2 ways to sign transactions: 有两种签署交易的方式:

  1. By using a node. 通过使用节点。 But that node should know private key of your address. 但是该节点应该知道您地址的私钥。 In other words, it should be your node, because you should never and ever send your private key to anybody else. 换句话说,它应该是您的节点,因为您永远不应该将私钥发送给其他任何人。
  2. By using Waves libraries for different languages (python, c#, js, java). 通过将Waves库用于不同的语言 (python,c#,js,java)。 Libraries can sign transaction with provided private key and send to the network already signed tx. 图书馆可以使用提供的私钥对交易进行签名,然后将已经签名的TX发送到网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM