tcatm / ecdsautils Goto Github PK
View Code? Open in Web Editor NEWThis project moved to https://github.com/freifunk-gluon/ecdsautils
This project moved to https://github.com/freifunk-gluon/ecdsautils
Ticket to track refactoring.
Current plan: create a library libecdsautil with a header libecdsautil/ecdsa.h
. Proposed API:
typedef struct _ecdsa_signature {
ecc_int256_t r;
ecc_int256_t s;
} ecdsa_signature_t;
typedef struct _ecdsa_verify_context {
ecc_25519_work_t s1;
ecc_int256_t u2;
ecc_int256_t r;
} ecdsa_verify_context_t;
bool ecdsa_is_valid_pubkey(const ecc_25519_work_t *pubkey);
void ecdsa_sign_legacy(ecdsa_signature_t *signature, const ecc_int256_t *hash, const ecc_int256_t *secret);
void ecdsa_verify_prepare_legacy(ecdsa_verify_context_t *ctx, const ecc_int256_t *hash, const ecdsa_signature_t *signature);
bool ecdsa_verify_legacy(const ecdsa_verify_context_t *ctx, const ecc_25519_work_t *pubkey);
int ecdsa_verify_list_legacy(const ecdsa_verify_context_t *ctx, const ecc_25519_work_t **pubkey);
The _legacy
suffix is supposed to convey that these functions are based on the old legacy curve of libuecc and not Ed25519. Ed25519 support could be added in a subsequent commit.
ecdsautil verify
should display usage information. Either with -h
or by wrong usage.
Can you please tag the current version 0.4.0 and create a release, please?
Hello,
I just compiled ecdsautils and the necessary library on a fresh Debian 8. Haveged is not installed there by default and ecdsautils just hangs for several minutes, if you try to create a private key.
There should be at least a hint, that the package is needed or it should be checked for in the make file.
Regards,
Matthias
ecdsautil verify
should output its usage when no signatures or no public keys a supplied (and exit with an error).
We should add scripts or symlinks offering the same functionality.
ecdsautils' binaries could be merged into a single binary:
ecdsautils help
ecdsautils keygen
ecdsautils sign
ecdsautils verify
Apparently there is no error.h on OS X, so the tool does not build on macs.
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.