简体   繁体   English

node - 如何为文件生成 NFT 令牌

[英]node - How to generate NFT token for a file

I'm reading about NFT tokens.我正在阅读有关 NFT 令牌的信息。 It seems an interesting way to sign media online and I want to do some experiments.在线签署媒体似乎是一种有趣的方式,我想做一些实验。 Is there any node-js implementation to add nft generation inside web or electron apps?是否有任何 node-js 实现可以在 web 或 electron 应用程序中添加 nft 生成? I'ts not clear for me if the ÈRC-721 standard can be implemented in javascript.我不清楚ÈRC-721标准是否可以在 javascript 中实现。 Any info about?有什么相关信息吗?

The ERC-721 defines a Solidity interface. ERC-721 定义了一个Solidity接口。 Solidity is a language that compiles into EVM-compatible bytecode (EVM stands for Ethereum Virtual Machine). Solidity 是一种编译成 EVM 兼容字节码的语言(EVM 代表以太坊虚拟机)。

And since smart contracts run on EVM, you need to use some language that compiles to EVM-compatible bytecode, such as Solidity or Vyper... Or you can write the bytecode directly in binary, if you you want.而且由于智能合约在 EVM 上运行,因此您需要使用一些可以编译为 EVM 兼容字节码的语言,例如 Solidity 或 Vyper……或者,如果您愿意,也可以直接以二进制形式编写字节码。 :) :)

There's currently no reliable compiler from Javascript to EVM bytecode.目前没有从 Javascript 到 EVM 字节码的可靠编译器。 So Javascript would not be a good choice, and I'd really recommend writing the implementation in Solidity or Vyper.所以 Javascript 不是一个好的选择,我真的建议用 Solidity 或 Vyper 编写实现。

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

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