简体   繁体   English

对NEM区块链进行编程并存储ipfs哈希

[英]Programming the NEM blockchain & storing ipfs hash

I am looking at integrating an IPFS content hash into the NEM/Mijin blockchain. 我正在考虑将IPFS内容哈希集成到NEM / Mijin区块链中。 If I attach the ipfs Hash in the message section of a mosaic, will this be actually added to the blockchain, or do I need to add the hash as part of the mosaic name, but how do suggest doing this as the mosaic name doesn't accept capital letters? 如果我在镶嵌的消息部分中附加了ipfs哈希,则将其实际添加到区块链中,还是我需要将哈希添加为镶嵌名称的一部分,但是由于镶嵌名称不建议这样做呢?不接受大写字母吗?

When I view my profiles account transactions, the mosaic is shown but not the message. 当我查看个人资料帐户交易时,会显示拼写,但不会显示消息。 Is there away of recovering the message included with the transaction? 是否有恢复交易中包含的消息的方法?

ie is there a command to recover the block transaction inc the message? 即是否有一条命令来恢复该大宗交易的消息? S nem2-cli account tranasactions --profile doesn't recover the message details? S nem2-cli帐户交易--profile无法恢复邮件详细信息?

just: Recipient, Mosaics, Signer, Deadline and Hash 只是:收件人,马赛克,签名者,截止日期和哈希

I'm using nem2-cli and the MIJIN_TEST network 我正在使用nem2-cli和MIJIN_TEST网络

If you can give me some suggestions., or pass on the message who can. 如果您能给我一些建议,或者传递消息的人可以。 I'd be very grateful. 我将非常感谢。

If you add the hash of the ipfs to the message of a mosaic, it will be stored in the blockchain. 如果将ipfs的哈希添加到镶嵌消息中,它将存储在区块链中。

If you use: 如果您使用:

nem2-cli transaction info -- profile your-profile --hash the-hash-of-transaction

you should be able to see the message in the transaction. 您应该能够在交易中看到该消息。

If you do not have the transaction hash you can find it with the use of this command: 如果您没有事务哈希,则可以使用以下命令找到它:

nem2-cli account transactions --profile your-profile  --publickey the-publicAccount-were-you-send-the-transation-to 

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

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