Comments (6)
import { bech32m } from 'bech32';
const puzzleHashWithoutPrefix = '195564b2245bfc2ae660de78c0c02b05c975e6980d222863f2e3b68655955790';
const words = bech32m.toWords(Buffer.from(puzzleHashWithoutPrefix, 'hex'));
console.log(bech32m.encode('xch', words)); // xch1r92kfv3yt07z4enqmeuvpsptqhyhte5cp53zscljuwmgv4v427gqljwlzj
from chia-client.
Yes, got it. Thanks so much for your reply.
from chia-client.
Yes, got it. Thanks so much for your reply.
Hello, how should I get puzzleHashWithoutPrefix from generateMnemonic();
I don't know the process very well, can you help me answer it?
from chia-client.
@1044740162 I've coded a module to do it, it's publishing to NPM and then I will send the link here.
from chia-client.
For all interested, I've created the chia-utils
node module which includes methods that solve this issue:
https://www.npmjs.com/package/chia-utils
https://github.com/CMEONE/chia-utils
from chia-client.
@ 1044740162我已经编写了一个模块来执行此操作,该模块正在发布到NPM,然后将链接发送到此处。
@1044740162 I've coded a module to do it, it's publishing to NPM and then I will send the link here.
Yes it's very cool, thank you
from chia-client.
Related Issues (17)
- The getNextAddress method has no return value HOT 3
- getNextAddress ssl error HOT 2
- sendTransaction get an unkown transaction_id HOT 5
- how to generate coin_info HOT 27
- Do you run Chia Explorer? HOT 1
- 这工具怎么用? HOT 1
- Implement RPC for wallet, harvester, farmer HOT 2
- Ca't connect to testnet HOT 2
- How can i run this Client? HOT 1
- run serve api error
- Compile into a seperate folder HOT 1
- fullNode.getUnspentCoins() not working? HOT 1
- call .then on the promise for fullNode
- Improve documentation
- How do I connect to rpc without cert files. HOT 2
- Is there a web wallet here?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chia-client.