-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor in tests #7
Comments
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
…tdevAlDen_t7_refactor_in_tests ref skycoin#7
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
some others will be used from hardware-walled/skycoin-api. Functions mapping(in this commnt): a commented function in go is related to is related to the one immediately below // extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); int recover_pubkey_from_signed_message(const char* message, const uint8_t* signature, uint8_t* pubkey); void ecdsa_get_public_key33(const ecdsa_curve *curve, const uint8_t *priv_key, uint8_t *pub_key); // const curve_info *get_curve_by_name(const char *curve_name); // int hdnode_from_seed(const uint8_t *seed, int seed_len, const char* curve, HDNode *out); // void hdnode_fill_public_key(HDNode *node); void create_node(const char* seed_str, HNode* node); void uncompress_mcoords(const ecdsa_curve *curve, uint8_t odd, const bignum256 *x, bignum256 *y); int mecdsa_validate_pubkey(const ecdsa_curve *curve, const curve_point *pub); void mpoint_multiply(const ecdsa_curve *curve, const bignum256 *k, const curve_point *p, curve_point *res); void mscalar_multiply(const ecdsa_curve *curve, const bignum256 *k, curve_point *res); void mpoint_set_infinity(curve_point *p); int mpoint_is_infinity(const curve_point *p); void mpoint_add(const ecdsa_curve *curve, const curve_point *cp1, curve_point *cp2); // extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); void mpoint_copy(const curve_point *cp1, curve_point *cp2); int mpoint_is_equal(const curve_point *p, const curve_point *q); int mpoint_is_negative_of(const curve_point *p, const curve_point *q); // extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); void mpoint_double(const ecdsa_curve *curve, curve_point *cp); void mcurve_to_jacobian(const curve_point *p, jacobian_curve_point *jp, const bignum256 *prime); void mjacobian_to_curve(const jacobian_curve_point *jp, curve_point *p, const bignum256 *prime); void mpoint_jacobian_add(const curve_point *p1, jacobian_curve_point *p2, const ecdsa_curve *curve); void mconditional_negate(uint32_t cond, bignum256 *a, const bignum256 *prime); void mpoint_jacobian_double(jacobian_curve_point *p, const ecdsa_curve *curve); // extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); void ecdh(const uint8_t* secret_key, const uint8_t* remote_public_key, uint8_t* ecdh_key /*should be size SHA256_DIGEST_LENGTH*/); void ecdh_shared_secret(const uint8_t* secret_key, const uint8_t* remote_public_key, uint8_t* shared_secret /*should be size SHA256_DIGEST_LENGTH*/); // extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); void secp256k1Hash(const uint8_t* seed, const size_t seed_length, uint8_t* secp256k1Hash_digest); void generate_deterministic_key_pair_iterator(const uint8_t* seed, const size_t seed_length, uint8_t* nextSeed, uint8_t* seckey, uint8_t* pubkey); // extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); void compute_sha256sum(const uint8_t *seed, uint8_t* digest /*size SHA256_DIGEST_LENGTH*/, size_t seed_lenght); // extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); void generate_pubkey_from_seckey(const uint8_t* seckey, uint8_t* pubkey); // extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); void generate_deterministic_key_pair(const uint8_t* seed, const size_t seed_length, uint8_t* seckey, uint8_t* pubkey); // extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); void generate_base58_address_from_pubkey(const uint8_t* pubkey, char* address, size_t *size_address); // extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); void generate_bitcoin_address_from_pubkey(const uint8_t* pubkey, char* address, size_t *size_address); // extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); void generate_bitcoin_private_address_from_seckey(const uint8_t* pubkey, char* address, size_t *size_address); int ecdsa_skycoin_sign(const uint32_t nonce_value, const uint8_t *priv_key, const uint8_t *digest, uint8_t *sig); // extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); void tohex(char * str, const uint8_t* buffer, int bufferLength); // extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); void writebuf_fromhexstr(const char *str, uint8_t* buf); ref skycoin#7
stdevAlDen
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Jan 25, 2019
@stdevHan pls continue the work done for this issue . |
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Feb 25, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Feb 25, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…o the definition of changes
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…ation of the dependencies for libc to check and removing the rest
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…avis, to download possible travis error with gcc6 in OSX
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…ake test , but updating the xcode version to 8.0=>8.3
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…sh, and declare to install gcc 6 `brew install gcc6` by testing in travis
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…avis-ci.com/skycoin/libskycoin/jobs/196050490#L1430, `error: ‘for’ loop initial declarations are only allowed in C99 mode`
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
…/travis-ci.org/skycoin/libskycoin/jobs/525238852#L1266 the type `error: ‘for’ loop initial declarations are only allowed in C99 mode`
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
Apr 27, 2019
olemis
added a commit
to simelo/libskycoin.orig
that referenced
this issue
May 1, 2019
…/cgo/skyassert.h
olemis
added a commit
to simelo/libskycoin.orig
that referenced
this issue
May 1, 2019
olemis
added a commit
to simelo/libskycoin.orig
that referenced
this issue
May 1, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
May 1, 2019
…suite.testsuite.go.h `
olemis
added a commit
to simelo/libskycoin.orig
that referenced
this issue
May 5, 2019
…on.c => libsky_assert.c}
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
May 5, 2019
m4yk3ldev
pushed a commit
to simelo/libskycoin.orig
that referenced
this issue
May 5, 2019
…ing them where they belong compared to `v0.25dev`.
olemis
added a commit
that referenced
this issue
May 5, 2019
Fixes #7 Refactoring the criterion tests to libcheck
fixed in 47f8d0f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Define an interface implemented by check, criterion or any other you want.
This is related to the need of use the same tests battery in libskycoin and hardware wallet.
The text was updated successfully, but these errors were encountered: