openos-labs / ic-go Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I need to send icp to another address using golang, I am now able to create private key and address
It is suggested to modify the newfrompem method and add the host parameter to facilitate local debugging
For example, code such a structure:
type Transaction = record{
to: principal;
amount: nat;
token_canister: principal;
};
type Block = record {
propose_id: nat;
transactions: vec Transaction;
};
When using rust encode! When encoding, the result is:
4449444c036c02d581cdb40c01bccbd5d00e786d026c03fbca0168eddeb5e10468d8a38ca80d7d010001011deb201ef87230c51f33f64b191e8f336f36f6f7119da10f1b6d1e989f02010a00000000000000050101904e0700000000000000
When encoding with golang encode, the result is:
4449444c036c03fbca0168eddeb5e10468d8a38ca80d7d6d006c02d581cdb40c01bccbd5d00e7d010201011deb201ef87230c51f33f64b191e8f336f36f6f7119da10f1b6d1e989f02010a00000000000000050101904e07
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.