Skip to content
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

Fixes #105 Update submodule to 0.27.0 #109

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
af6585c
refactor
May 14, 2019
1f3d18d
refactor
May 14, 2019
ea25ad9
run common_check_cipher_hash in libskycoin tests after refactor ref #34
May 14, 2019
95f7f43
run tests against hardware wallet ref #34
May 14, 2019
308b148
makefile rule to run hardware wallet tests ref #34
May 14, 2019
ed4c63a
fix in test-hw-crypto makefile rule ref #34
May 14, 2019
810c8e5
Merge remote-tracking branch 'upstream/v0.25dev' into stdevAlDen_t34_…
May 14, 2019
f6e0346
TestAddSHA256 come from common ref #84
May 14, 2019
3abff9d
refactor
May 15, 2019
907ee1a
disable build matrix
May 15, 2019
bc3c949
refactor
May 15, 2019
a16a448
refactor
May 15, 2019
e6596ab
refactor
May 15, 2019
c308812
refactor
May 15, 2019
1ff07f2
refactor
May 15, 2019
9a90451
refactor
May 15, 2019
66fd014
refactor
May 15, 2019
1e8eedf
refactor
May 15, 2019
ffcec79
refactor
May 15, 2019
b0ae131
refactor
May 15, 2019
e3bef74
refactor
May 15, 2019
00a0099
refactor
May 15, 2019
0408866
refactor
May 15, 2019
9038eeb
refactor
May 15, 2019
6dc0acc
recator
May 16, 2019
f1f8671
refactor
May 16, 2019
40f0c59
refactor
May 16, 2019
f08c9b5
refactor
May 16, 2019
50eb911
refactor
May 16, 2019
80c1c02
refactor
May 16, 2019
df99fa2
refactor
May 16, 2019
95e4fe5
refactor
May 16, 2019
c1668de
refactor
May 16, 2019
68aef41
refactor
May 16, 2019
74e4240
refactor
May 17, 2019
36e8295
refactor
May 17, 2019
bd23135
refactor
May 17, 2019
64f7808
refactor revert a test to the original location ref #34
May 18, 2019
0321b17
Revert "disable build matrix"
May 18, 2019
82abcc2
Merge remote-tracking branch 'upstream/v0.25dev' into stdevAlDen_t34_…
May 18, 2019
87a3cce
Revert "refactor revert a test to the original location ref #34"
May 18, 2019
850103c
TestSHA256Null it's a common test ref #34
May 18, 2019
a267fab
fix some errors duw to refactorization ref #34
May 18, 2019
2deaf0d
change wilcard to explude test_main_hw.c as this file is for hardware…
May 18, 2019
985bfa8
Merge remote-tracking branch 'upstream/v0.25dev' into stdevAlDen_t34_…
May 18, 2019
3d20e38
fix bugs in tests suits ref #34
May 21, 2019
e3cb4bd
Merge remote-tracking branch 'upstream/v0.25dev' into stdevAlDen_t34_…
May 21, 2019
09abe50
TestECDH* tests are not requiered for firmware ref #34
May 21, 2019
d2585f7
fix linker flag to load shared lib ref #34
May 23, 2019
757c3de
Merge remote-tracking branch 'upstream/v0.25dev' into stdevAlDen_t34_…
May 23, 2019
6fc9e33
add dependencies to test-hw-crypto rule ref #34
May 23, 2019
8778c36
run hw test with valgind ref #34
May 23, 2019
0b3e3f2
disable mem clean up ref #34
May 23, 2019
f93a34c
enable cleanupMem ref #34
May 23, 2019
0cb4f33
Revert "fix bugs in tests suits ref #34"
May 23, 2019
fe3a69a
rebuild check library only if required ref #34
May 24, 2019
d2135b8
fix bug ref #34
May 24, 2019
43a22e5
Merge remote-tracking branch 'simelo/v0.25dev' into stdevAlDen_t34_ha…
May 26, 2019
dab1157
Merge remote-tracking branch 'simelo/v0.25dev' into stdevAlDen_t34_ha…
May 26, 2019
edde8c4
Merge remote-tracking branch 'simelo/stdevAlDen_t34_hardware-wallet_t…
May 26, 2019
8c0307d
move test-hw-crypto to hardware wallet repo ref #34
May 26, 2019
3e6f1f7
install check on linux if it is not build yet ref #34
May 26, 2019
af75a4b
fix bugs and/or warnings ref #34
May 27, 2019
b5bf315
fix memory buffer handling in TestPubKeyHex ref #34
May 28, 2019
5a7bd53
fix test assertion in TestPubKeyHex ref #34
May 28, 2019
8af339a
fix in TestAddressString ref #34
Jun 6, 2019
cbcc513
Fix in TestAddressBulk, initialize string memory in the test ref #34
Jun 6, 2019
e2a5b2d
Fix buffer size in TestDecodeBase58Address ref #34
Jun 17, 2019
c3c1602
[Makefile] refs #105 Correcting parameter the install linters
Aug 9, 2019
88774c4
[submodule] refs #105 Update submodule to develop
Aug 9, 2019
5b4a869
[cgo] refs #105 Added `wallet.meta` , `wallet.colection_wallet`
Aug 9, 2019
160acfa
[cgo][cli.cli] refs #105 Removed function `SKY_cli_Config_FullWalletP…
Aug 9, 2019
d3ce7c5
[cgo] refs #105 Change datatype `SKY_cli_AddPrivateKey`
Aug 9, 2019
6b86632
[cgo] refs #105 Added datatype `WalletSeedResponse__Handle`, - Remove…
Aug 9, 2019
ee24916
[cgo] refs #105 Removed function `SKY_cli_GenerateWallet`
Aug 9, 2019
18ea416
[cgo] refs #105 Remove function `SKY_params_GetDistributionAddresses`
Aug 9, 2019
700f0a3
[cgo] refs #105 - Removed function `SKY_params_GetUnlockedDistributio…
Aug 9, 2019
ae1a6e8
[cgo] refs #105 - Removed function `SKY_wallet_LoadReadableWallet`
Aug 9, 2019
6809e53
[cgo] refs #105 - Rename function `SKY_wallet_Wallet_Lock` => `SKY_wa…
Aug 10, 2019
f0d8a1e
[cgo] refs #105 - Removed function `SKY_api_Handle_GetWalletMeta`
Aug 10, 2019
661becd
[cgo] refs #105 Rewrite functions in params.distribution
Aug 11, 2019
ae326d4
[cgo] refs #105 Remove false positive in params.distribution
Aug 11, 2019
3abeb0d
[cgo] refs #105 - Added datatype `SKY_params_Distribution_GetMainNetD…
Aug 11, 2019
d8a79ae
[cgo] refs #105 Correcting definition Strings_Handle and Run only sui…
Aug 11, 2019
10a63a9
[cgo][test-libc] refs #105 rewrite test param.Distribution
Aug 11, 2019
922d2c8
[cgo][test-libc] refs #105 Added function `SKY_cipher_Sig_String`
Aug 11, 2019
b7c6d7c
[cgo] refs #105
Aug 12, 2019
a48696c
[cgo][libc] refs #105 - Added datatype `PublicKey__Handle`
Aug 14, 2019
b14e7d1
[libc] refs #105 Remove old declarartions in `visor.readable.go.h`
Aug 14, 2019
1e164ff
[libc] refs #105 Added datatype the `bip32.path`
Aug 14, 2019
cb2cc7f
[libc] refs #105 Correcting bad definitions in cipher.bip32.path
Aug 14, 2019
6c4b4c6
[cgo] refs #105 Added function `SKY_bip32_PrivateKey_DeriveSubpath`
Aug 15, 2019
59a5da2
[cgo] refs #105 - Added function `SKY_bip32_PathNode_Hardened`
Aug 15, 2019
33522fc
[libc] refs #105 Init test cipher.bip32 and comment all test to execu…
Aug 16, 2019
9b68f75
[libc][test] refs #105 Finalized test `TestMaxChildDepthError`
Aug 17, 2019
1a0f180
[libc] refs #105 Remove old test in cipher
Aug 17, 2019
465b9d8
[cgo] refs #105 Added type error
Aug 18, 2019
d95c295
[cgo] refs #105 Init functions to cipher.bip44
Aug 18, 2019
784b1e2
[cgo][libc] refs #105 Added error type `SKY_ErrInvalidCoinType`
Aug 18, 2019
70612d4
[cgo][libc] refs #105 Added cipher.bip44, and
Aug 18, 2019
bf956d2
[cgo][libc] refs #105 Added suite test cipher.bip44
Aug 19, 2019
50487ae
[cgo][test-libc] refs #105 - Added function `SKY_bip44_Account_String`
Aug 19, 2019
f91833c
Merge remote-tracking branch 'upstream/develop' into stdevAlDen_t34_h…
Aug 19, 2019
73362f2
[cgo][libc] refs #105 - Added function `SKY_bip44_Account_GetPrivateKey
Aug 20, 2019
af22be1
[CHANGELOG] refs #105 Correcting parse conf
Aug 20, 2019
e07076c
[libc] refs #105 Added datatype `coin__HashPair`
Aug 20, 2019
4a345f3
[libc] refs #83 #105 Repair bug the compare void
Aug 20, 2019
18f9138
[libc] refs #105 Commit test `TestSortTransactions`
Aug 21, 2019
6695572
[cgo] refs #105 Fixing double pointer statements in coin.transactions
Aug 21, 2019
8241bd4
Merge branch 'stdevHan_t105_update_submodule_0.27.0' into stdevAlDen_…
Aug 21, 2019
030a54b
[submodule] refs #105 Update submodule
Aug 22, 2019
e6509b3
[cgo] refs #105 Added function helper by coin.transactions
Aug 23, 2019
e5aa1fa
[cgo][libc] refs #105 Added new functions helpers && and commit test.…
Aug 25, 2019
b181aca
[cgo][libc] refs #105 Repair error the memory in transaction by x64
Aug 25, 2019
4adf0d0
[libc] refs #105 FInalized clean error in test to crash panic
Aug 25, 2019
7462041
[libc] refs #105 Clean warning the compilations test
Aug 25, 2019
bdce11a
remove some test from hw
Aug 26, 2019
175d7fa
keep tests unchanged from 0.27 ref #34
Aug 26, 2019
b432115
Merge remote-tracking branch 'simelo/stdevHan_t105_update_submodule_0…
Aug 26, 2019
524c394
refactor libsky_assert in two files ref #34
Aug 26, 2019
b2f7e3c
remove TestPubKeyToAddress2 from the hw suit ref #34
Aug 26, 2019
8ac06c8
Merge pull request #1 from simelo/stdevAlDen_t34_hardware-wallet_tests
stdevMac Aug 28, 2019
b92c662
[libc] refs #105 Correcting the evidence behind the union of the bran…
Aug 29, 2019
bd074e1
[cgo][libc] refs #105
Aug 30, 2019
a476ea9
[cgo] refs #105 Correcting functions define `SKY_cipher_BitcoinWallet…
Sep 1, 2019
5d7780b
[libsky] refs #105 Added function the test `testVectorKeyPairs`
Sep 1, 2019
60cec49
[cgo] refs #105 Repair function `base58`
Sep 3, 2019
2593e65
[cgo] refs #105 Added function `SKY_bip32_PrivateKey_GetChainCode`
Sep 3, 2019
dc36331
[libc][cgo] refs #105 Added function to get parameter in `PrivateKey…
Sep 3, 2019
cf5856d
[cgo][CHANGELOG] refs #105 - Added function `SKY_testutil_MakePubKey`
Sep 3, 2019
985749d
[cgo][CHANGELOG] refs #105 - Added function `SKY_testutil_RandXPub`
Sep 3, 2019
50a1894
[submodule] refs #105 Update submodule
Sep 3, 2019
97c57a9
[libc] refs #105 Correcting working in vector `cipher.bip32`
Sep 3, 2019
1513131
[libc] refs #105 Finalized test `TestBip32TestVectors`
Sep 3, 2019
de34f48
[Makefile] refs #105 Update tags `clean `
Sep 4, 2019
92d8cf6
[cgo] refs #105 Added datatype Path__Handle
Sep 4, 2019
a055c57
[libc] refs #105 Finalized test `TestParentPublicChildDerivation`
Sep 4, 2019
8ff3d85
[libc] refs #105 Finalized `TestDeserializePrivateInvalidStrings`
Sep 5, 2019
bf5265d
[libc] refs #105 Added test `TestDeserializePublicInvalidStrings` and…
Sep 5, 2019
1667a59
[libc][cgo] refs #105 Finalized test cipher.bip32
Sep 5, 2019
f73ebef
[cgo][libc] refs #105
Sep 5, 2019
a7e8466
[cgo] refs #105 Corrections all declare to `*C.GoString ` => *string …
Sep 5, 2019
3b66eee
[libc] refs #105 Initializing test repair, change buffers and changed…
Sep 5, 2019
ff5382a
[cgo] refs #105 Validate error in `SKY_testutil_RandXPub`
Sep 9, 2019
36eeebd
[libc] refs #105 Correcting in the `string ` check in `TestNewCoin` `…
Sep 9, 2019
536367a
[libc] refs #105 Correcting jobs to string in `TestSHA256KnownValue`
Sep 9, 2019
2f3328d
move out of common some no available function in hw for libskycoin_as…
Sep 10, 2019
94769a3
move TestSumSHA256 out of hw tests ref #108
Sep 10, 2019
c9e12bb
fix some function signatures from libskycoin.h ref #108
Sep 10, 2019
b9ed13f
[cgo][libc] refs #105 Added functions `SKY_coin_DeserializeTransactio…
Sep 11, 2019
bc876e3
[libc] refs #105 Repair error in compare GoString_ to GoString in `Te…
Sep 11, 2019
03ccbce
[cgo] refs #105 Added function helper `SKY_Handle_Strings_Get`
Sep 12, 2019
ecf5710
[libc] refs #105 Restore function `SKY_params_Distribution_GetAddress…
Sep 14, 2019
deeeeeb
[cgo] refs #105 Correcting declare `SKY_params_Distribution_GetAddres…
Sep 14, 2019
409d436
[cgo] refs #105 Correcting declare to export `string` in `SKY_Handle_…
Sep 14, 2019
8fbd656
[SWIG] refs #105 Added `Handle` in dynamic `Distribution__Handle`
Sep 14, 2019
b08948a
[cgo] refs #105 Correcting declare function in `SKY_params_Distributi…
Sep 14, 2019
ca974af
Merge remote-tracking branch 'simelo/stdevHan_t105_update_submodule_0…
Sep 16, 2019
fd700e0
Merge pull request #2 from simelo/stdevAlDen_t108_refactor_libskycoin…
stdevMac Sep 17, 2019
76c7151
[cgo] refs #105 Remove helper function `SKY_Handle_Strings_Get`
Sep 17, 2019
93cea3c
[cgo] refs #105 Correcting function `SKY_params_Distribution_GetMainN…
Sep 17, 2019
9024228
[cgo][libc] refs #105 Remove `Strings_Handle`
Sep 19, 2019
fb775d3
[cgo] refs #105 Redefine `coin__UxArray` in coin.outputs.go
Sep 20, 2019
636d24c
[cgo] refs #105 Convert to return `*[]string` in `*C.GoSlice_` for m…
Sep 20, 2019
8b24ee0
[cgo] refs #105 Restore to `*string` => `*C.GoString_`
Sep 21, 2019
83af90e
[cgo] refs #105 Repair error in `SKY_cipher_PubKey_Hex` and `SKY_ciph…
Sep 21, 2019
f5dc163
[cgo] refs #105 Correcting functions `SKY_cipher_RandByte`
Sep 21, 2019
9db5dc0
[cgo] refs #105 Correcting errors in memory for `cipher.bitcoin` for …
Sep 22, 2019
1287531
[cgo] refs #105 Repair functions `SKY_cipher_ECDH` and `SKY_cipher_Ge…
Sep 24, 2019
8832cd8
[cgo] refs #105 Finalized restore the `cipher.hash`
Sep 24, 2019
c402645
[libc][cgo] refs #105 Correcting memory error to generate `pyskycoin`
Sep 25, 2019
472036f
[libc][cgo] refs #105 Correcting `cipher.secp256k1` to error memory …
Sep 25, 2019
364f127
[cgo][libc] refs #105 Correcting `coin.block ` memory in pyskycoin
Sep 25, 2019
e34fbf6
[cgo] refs #105 Correcting memory `util.droplet`
Sep 25, 2019
9cf8d31
[cgo][libc] refs #105 Restore to []bytes in C.GoSlice_ that generate …
Sep 25, 2019
a3eb1c0
[test][libc] refs #105 Comment bad definition the function
Sep 26, 2019
da78c35
[cgo] refs #105 Restore fuctions `SKY_coin_GetTransactionObject`
Sep 26, 2019
2030f0c
[cgo][libc][test-libsky] refs #105 correcting memory error generated …
Sep 27, 2019
c1cbcd9
[libc] refs #105 Finalized suite test `cipher.bip32`
Sep 28, 2019
483ff30
[libc] refs #105 Comment test `TestBip32TestVectors` tryning look tha…
Sep 28, 2019
0e97c27
[libc] refs #105 Comment all test to bip32 to error in armv7
Sep 30, 2019
518495b
[libc][cgo] refs #105 Rewrite test cipher.bip32 to generate error in …
Sep 30, 2019
a311d3e
[libc] refs #105 Renaming all test suites, to see which one crashes i…
Oct 1, 2019
91c0d7f
[libc] refs #105 Correcting memory in GoSlice for `cipher.bip32`
Oct 1, 2019
c913831
[cgo] refs #105 Restore functions `SKY_cipher_SHA256_Set`
Oct 1, 2019
8431ff1
[cgo][SWIG] refs #105 Added export multireturn GoUint32
Oct 1, 2019
1879063
[cgo][SWIG] refs #105 Correcting inverted memory in GoUint32 for pysk…
Oct 3, 2019
85b1857
[cgo] refs #105 Fixing format errors in cipher.bip32
Oct 3, 2019
2f26be5
[cgo] refs #105 Repair error in memory to dotnet in `testutil.testuti…
Oct 12, 2019
2eba5f3
[travis] refs #105 Trynning used `arm64`
Oct 12, 2019
a059ffb
[travis] refs #105 Restore conf disable testing in arm64, only CircleCI
Oct 12, 2019
82e5402
refs #105 Emigrate to fibercrypto/libskycoin
Nov 9, 2019
2699f1d
Merge branch 'stdevHan_t105_update_submodule_0.27.0' of https://githu…
Nov 9, 2019
8fd00d5
[README] refs #105 Correcting url to load status
Nov 9, 2019
e167bab
[travis] refs #105 Using default image the osx
Nov 9, 2019
b6b5185
[travis] refs #105 Clean bad definition in conf
Nov 10, 2019
b45b316
[submodule] refs #105 Update submodule
Nov 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,6 @@ seeds.csv
histogram
# Ignore compilator by qemu
qemu_*
core
core
#Generate in Dolphin
.directory
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
sudo: required
services:
- docker
language: go
go:
matrix:
include:
- os: linux
dist: xenial
- os: osx
osx_image: xcode8.3
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update -qq;
fi
- ./ci-scripts/install-travis-gcc.sh
- eval "CC=gcc-6 && CXX=g++-6"
env:
Expand All @@ -22,7 +15,7 @@ env:
- LIB_DIR: lib
- CGO_ENABLED: 1
- VERSION_UPGRADE_TEST_WAIT_TIMEOUT: 60s
- PATH_DIR: "$GOPATH/src/github.com/skycoin/libskycoin/"
- PATH_DIR: "$GOPATH/src/github.com/fibercrypto/libskycoin/"
install:
# Install gox
- go get github.com/gz-c/gox
Expand Down Expand Up @@ -53,7 +46,7 @@ deploy:
draft: true
overwrite: true
on:
repo: skycoin/libskycoin
repo: fibercrypto/libskycoin
tags: true
notifications:
email: false
Expand Down
132 changes: 129 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
Expand All @@ -7,17 +8,142 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Unreleased

### Added

- Added swagger specification for `Skycoin REST API` to v0.27.0
- Added `wallet.collection_wallet`
- Added datatype `CollectionWallet__Handle`
- Added datatype `MetaWallet__Handle`
- Added function `SKY_wallet_CollectionWallet_AddEntry`
- Added function `SKY_wallet_CollectionWallet_GetEntry`
- Added function `SKY_wallet_CollectionWallet_GetAddresses`
- Added function `SKY_wallet_CollectionWallet_GenerateAddresses`
- Added function `SKY_wallet_MetaWallet_IsEncrypted`
- Added function `SKY_wallet_MetaWallet_Label`
- Added function `SKY_wallet_MetaWallet_Filename`
- Added function `SKY_wallet_MetaWallet_Version`
- Added function `SKY_wallet_MetaWallet_Type`
- Added datatype `WalletSeedResponse__Handle`
- Added datatype `Distribution__Handle`
- Added datatype `SKY_params_Distribution_GetMaxCoinSupply`
- Added datatype `SKY_params_Distribution_SetMaxCoinSupply`
- Added datatype `SKY_params_Distribution_GetInitialUnlockedCount`
- Added datatype `SKY_params_Distribution_SetInitialUnlockedCount`
- Added datatype `SKY_params_Distribution_GetUnlockAddressRate`
- Added datatype `SKY_params_Distribution_SetUnlockAddressRate`
- Added datatype `SKY_params_Distribution_GetUnlockTimeInterval`
- Added datatype `SKY_params_Distribution_SetUnlockTimeInterval`
- Added datatype `SKY_params_Distribution_GetAddresses`
- Added datatype `SKY_params_Distribution_SetAddresses`
- Added datatype `SKY_params_Distribution_Validate`
- Added datatype `SKY_params_Distribution_AddressInitialBalance`
- Added datatype `SKY_params_Distribution_UnlockedAddresses`
- Added datatype `SKY_params_Distribution_LockedAddresses`
- Added datatype `SKY_params_Distribution_AddressesDecoded`
- Added datatype `SKY_params_Distribution_UnlockedAddressesDecoded`
- Added datatype `SKY_params_Distribution_LockedAddressesDecoded`
- Added datatype `SKY_params_Distribution_GetMainNetDistribution`
- Added function `SKY_cipher_Sig_String`
- Added function `SKY_cipher_Sig_Null`
- Added function `SKY_cipher_VerifySignatureRecoverPubKey`
- Added datatype `CreateWalletOptionsHandle`
- Added function `SKY_api_Client_CreateWallet`
- Added function `SKY_api_Client_InjectTransactionNoBroadcast`
- Added function `SKY_api_Client_InjectEncodedTransactionNoBroadcast`
- Added function `SKY_api_Client_RecoverWallet`
- Added datatype `CreateWalletOptions__Handle`
- Added datatype `WalletRecoverRequest__Handle`
- Added datatype `PublicKey__Handle`
- Added datatype `PrivateKey__Handle`
- Added datatype `Path`
- Added datatype `PathNode`
- Added function `SKY_bip32_PrivateKey_DeriveSubpath`
- Added function `SKY_bip32_PrivateKey_Publickey`
- Added function `SKY_bip32_PrivateKey_Fingerprint`
- Added function `SKY_bip32_PublicKey_Fingerprint`
- Added function `SKY_bip32_PrivateKey_Identifier`
- Added function `SKY_bip32_PublicKey_Identifier`
- Added function `SKY_bip32_PrivateKey_NewPrivateChildKey`
- Added function `SKY_bip32_PrivateKey_NewPublicChildKey`
- Added function `SKY_bip32_PrivateKey_Serialize`
- Added function `SKY_bip32_PublicKey_Serialize`
- Added function `SKY_bip32_PrivateKey_String`
- Added function `SKY_bip32_PublicKey_String`
- Added function `SKY_bip32_DeserializeEncodedPrivateKey`
- Added function `SKY_bip32_DeserializePrivateKey`
- Added function `SKY_bip32_DeserializeEncodedPublicKey`
- Added function `SKY_bip32_DeserializePublicKey`
- Added function `SKY_bip32_PathNode_Hardened`
- Added function `SKY_bip32_ParsePath`
- Added datatype `bip44_CoinType`
- Added function `SKY_bip44_NewCoin`
- Added datatype `Account__Handle`
- Added datatype `Coin__Handle`
- Added function `SKY_bip44_Coin_Account`
- Added function `SKY_bip44_Account_External`
- Added function `SKY_bip44_Account_Change`
- Added function `SKY_bip44_Account_String`
- Added function `SKY_bip44_Account_GetPrivateKey`
- Added function `SKY_bip32_PrivateKey_GetKey`
- Added function `SKY_bip32_PublicKey_GetKey`
- Added datatype `coin__HashPair`
- Added function `SKY_bip32_PrivateKey_GetDepth`
- Added function `SKY_bip32_PublicKey_GetDepth`
- Added function `SKY_bip32_PrivateKey_ChildNumber`
- Added function `SKY_bip32_PublicKey_ChildNumber`
- Added function `SKY_bip32_PrivateKey_GetChainCode`
- Added function `SKY_bip32_PublicKey_GetChainCode`
- Added function `SKY_testutil_MakePubKey`
- Added function `SKY_testutil_RandXPub`
- Added datatype `wallet__CryptoType`
- Added function `SKY_cli_GetWalletOutputsFromFile`
- Added function `SKY_cli_GetWalletOutputs`
- Added function `SKY_cli_GetBalanceOfAddresses`
- Added datatype `GetOutputser__Handle`
- Added functions `SKY_coin_DeserializeTransactionHex`

### Removed

- Removed function `SKY_wallet_Wallet_AddEntry`
- Removed function `SKY_wallet_Wallet_GetEntry`
- Removed function `SKY_wallet_Wallet_GetAddresses`
- Removed function `SKY_wallet_Wallet_GenerateAddresses`
- Removed function `SKY_wallet_Wallet_IsEncrypted`
- Removed function `SKY_wallet_Wallet_Label`
- Removed function `SKY_wallet_Wallet_File`
- Removed function `SKY_wallet_Wallet_Version`
- Removed function `SKY_wallet_Wallet_Type`
- Removed function `SKY_cli_Config_FullWalletPath`
- Removed function `SKY_api_Client_CreateUnencryptedWallet`
- Removed function `SKY_api_Client_CreateEncryptedWallet`
- Removed function `SKY_cli_GenerateWallet`
- Removed function `SKY_params_GetDistributionAddresses`
- Removed function `SKY_params_GetUnlockedDistributionAddresses`
- Removed function `SKY_params_GetLockedDistributionAddresses`
- Removed function `SKY_wallet_LoadReadableWallet`
- Removed function `SKY_wallet_ReadableWallet_Save`
- Removed function `SKY_wallet_ReadableWallet_Load`
- Removed function `SKY_wallet_ReadableWallet_Erase`
- Removed function `SKY_api_Handle_GetWalletMeta`
- Removed function `SKY_api_Handle_GetWalletEntriesCount`
- Removed function `SKY_api_Handle_WalletGetEntry`
- Removed function `SKY_api_Handle_WalletResponseGetCryptoType`

### Changed

- Update `lib/curl` to v0.27.0
- Update submodule to `skycoin == 0.27.0`
- Change datatype `SKY_cli_AddPrivateKey`
- Change datatype `SKY_api_Client_WalletSeed`
- Rename function `SKY_wallet_Wallet_Lock` => `SKY_wallet_Lock`
- Rename function `SKY_wallet_Wallet_Unlock` => `SKY_wallet_Unlock`

## [0.26.0] - 2019-07-12

### Added

- Added datatype `api__TransactionInput`
- Added datatype `transaction__UxBalance`
- Added function `SKY_transaction_NewUxBalances`,
- Added function `SKY_transaction_NewUxBalances`,
- Added function `SKY_transaction_DistributeCoinHoursProportional`, `SKY_transaction_DistributeSpendHours`
- Added funcion `SKY_coin_VerifyInputSignatures`
- Added funcion `SKY_coin_BlockHeader_SetTime`
Expand All @@ -33,13 +159,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Update /metrics endpoint to add metrics from /health: unspent_outputs, unconfirmed_txns, time_since_last_block_seconds, open_connections, outgoing_connections, incoming_connections, start_at, uptime_seconds, last_block_seq.

### Changed

- Support for this changed functions in `skyapi`:
- Add /api/v1/resendUnconfirmedTxns to the WALLET API set
- In POST /api/v1/wallet/transaction, moved wallet parameters to the top level of the object
- POST /api/v2/wallet/seed/verify returns an error if the seed's checksum is invalid
- Increase the detail of error messages for invalid seeds sent to POST /api/v2/wallet/seed/verify

### Removed

- Removed symbolic links from vendor
- Removed function `SKY_webrpc_NewClient`, `SKY_webrpc_Client_CSRF`, `SKY_webrpc_Client_InjectTransaction`, `SKY_webrpc_Client_GetStatus`,`SKY_webrpc_Client_GetTransactionByID`, `SKY_webrpc_Client_GetAddressUxOuts`, `SKY_webrpc_Client_GetBlocksInRange`, `SKY_webrpc_Client_GetBlocksBySeq` and `SKY_webrpc_Client_GetLastBlocks`.
- Removed datatype `wallet__UxBalance`
Expand All @@ -57,7 +185,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- The unversioned REST API (the -enable-unversioned-api is removed, prefix your API requests with /api/v1 if they don't have an /api/vx prefix already). See https://github.com/skycoin/skycoin/blob/develop/src/api/README.md#migrating-from-the-unversioned-api
- /api/v1/wallet/spend endpoint (use POST /api/v1/wallet/transaction followed by POST /api/v1/injectTransaction instead). See https://github.com/skycoin/skycoin/blob/develop/src/api/README.md#migrating-from--api-v1-spend


## [0.25.1] - 2019-06-30

### Added
Expand Down Expand Up @@ -91,4 +218,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add `coin`, `wallet`, `util/droplet` and `util/fee` methods as part of `libskycoin` C API
- Add `util/droplet` and `util/fee` API's as part of `libskycoin`
- Implement SWIG interfaces in order to generate client libraries for multiple programming languages

16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ build-libc-dbg: configure-build build-libc-static build-libc-shared

test-libc: build-libc ## Run tests for libskycoin C client library
echo "Compiling with $(CC) $(CC_VERSION) $(STDC_FLAG)"
$(CC) -o $(BIN_DIR)/test_libskycoin_shared $(LIB_DIR)/cgo/tests/*.c $(LIB_DIR)/cgo/tests/testutils/*.c -lskycoin $(LDLIBS) $(LDFLAGS)
$(CC) -o $(BIN_DIR)/test_libskycoin_static $(LIB_DIR)/cgo/tests/*.c $(LIB_DIR)/cgo/tests/testutils/*.c $(BUILDLIB_DIR)/libskycoin.a $(LDLIBS) $(LDFLAGS)
$(eval TESTS_SRC := $(shell ls $(LIB_DIR)/cgo/tests/*.c | grep -v test_main_hw.c))
$(CC) -o $(BIN_DIR)/test_libskycoin_shared $(TESTS_SRC) $(LIB_DIR)/cgo/tests/testutils/*.c -lskycoin $(LDLIBS) $(LDFLAGS)
$(CC) -o $(BIN_DIR)/test_libskycoin_static $(TESTS_SRC) $(LIB_DIR)/cgo/tests/testutils/*.c $(BUILDLIB_DIR)/libskycoin.a $(LDLIBS) $(LDFLAGS)
$(LDPATHVAR)="$(LDPATH):$(BUILD_DIR)/usr/lib:$(BUILDLIB_DIR)" $(BIN_DIR)/test_libskycoin_shared
$(LDPATHVAR)="$(LDPATH):$(BUILD_DIR)/usr/lib" $(BIN_DIR)/test_libskycoin_static

Expand Down Expand Up @@ -168,8 +169,8 @@ check: lint test-libc lint-libc test-skyapi ## Run tests and linters

install-linters-Linux: ## Install linters on GNU/Linux
sudo apt-get update
sudo apt-get install $(PKG_CLANG_FORMAT)
sudo apt-get install $(PKG_CLANG_LINTER)
sudo apt-get install $(PKG_CLANG_FORMAT) -y
sudo apt-get install $(PKG_CLANG_LINTER) -y

install-linters-Darwin: ## Install linters on Mac OSX
# brew install $(PKG_CLANG_FORMAT)
Expand Down Expand Up @@ -209,7 +210,9 @@ install-deps-libc: install-deps-libc-$(UNAME_S) ## Install deps for libc

install-deps-skyapi: install-deps-skyapi-$(UNAME_S) ## Install skyapi(libcurl based) library.

install-deps-libc-Linux: configure-build ## Install locally dependencies for testing libskycoin
install-deps-libc-Linux: configure-build check-0.12.0/src/.libs/libcheck.so ## Install locally dependencies for testing libskycoin

check-0.12.0/src/.libs/libcheck.so: ## Install libcheck
wget -c https://github.com/libcheck/check/releases/download/0.12.0/check-0.12.0.tar.gz
tar -xzf check-0.12.0.tar.gz
cd check-0.12.0 && ./configure --prefix=/usr --disable-static && make && sudo make install
Expand All @@ -226,6 +229,7 @@ clean-libc: ## Clean files generated by libc
rm -rfv $(BUILDLIB_DIR)
rm -rfv bin
rm -rfv qemu_test_libskycoin*
rm -rfv qemu_*
rm -rfv include/libskycoin.h

clean-skyapi: ## Clean files generated by skyapi
Expand All @@ -235,7 +239,7 @@ clean-skyhwd: ## Clean files generated by skyhwd
rm -rfv $(BUILDLIBSKYHWD_DIR)

clean: clean-libc clean-skyapi clean-skyhwd ## Clean all files generated by libraries

rm -rfv $(BUILD_DIR)
format-libc:
$(PKG_CLANG_FORMAT) -sort-includes -i -assume-filename=.clang-format lib/cgo/tests/*.c
$(PKG_CLANG_FORMAT) -sort-includes -i -assume-filename=.clang-format include/*.h
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Skycoin C library

[![Build Status](https://travis-ci.com/skycoin/libskycoin.svg)](https://travis-ci.com/skycoin/libskycoin)
[![Build Status](https://travis-ci.com/fibercrypto/libskycoin.svg)](https://travis-ci.com/fibercrypto/libskycoin)

Skycoin C library (a.k.a `libskycoin`) exports the Skycoin API to DApps using the C programming language.
It is also the foundation to build client libraries for other programming languages.
Expand Down
11 changes: 5 additions & 6 deletions docker/images/deploy-arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ ARG PROJECT_USERNAME
ARG PROJECT_REPONAME
ARG SHA1
ARG VERSION
ADD . $GOPATH/src/github.com/skycoin/libskycoin/
ADD . $GOPATH/src/github.com/fibercrypto/libskycoin/

RUN [ "cross-build-start" ]

RUN ls -oa $GOPATH/src/github.com/skycoin/libskycoin/
RUN sh $GOPATH/src/github.com/skycoin/libskycoin/ci-scripts/docker_install_debian.sh
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin dep
RUN sh $GOPATH/src/github.com/fibercrypto/libskycoin/ci-scripts/docker_install_debian.sh
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin dep
RUN go get github.com/gz-c/gox
RUN go get -t ./...
ENV CGO_ENABLED=1
ENV ARCH=${QEMU_PLATFORM}
ENV OS="Linux"
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin build
RUN tar -czf libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz -C $GOPATH/src/github.com/skycoin/libskycoin/build $GOPATH/src/github.com/skycoin/libskycoin/build/*
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin build
RUN tar -czf libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz -C $GOPATH/src/github.com/fibercrypto/libskycoin/build $GOPATH/src/github.com/fibercrypto/libskycoin/build/*
RUN go get github.com/tcnksm/ghr
RUN ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} -replace -draft ${VERSION} libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz

Expand Down
14 changes: 7 additions & 7 deletions docker/images/test-arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ FROM balenalib/${QEMU_PLATFORM}-${QEMU_OS}-golang
# See https://travis-ci.org/simelo/libskycoin/jobs/529481211#L649-L653
ARG QEMU_OS

ADD . $GOPATH/src/github.com/skycoin/libskycoin/
ADD . $GOPATH/src/github.com/fibercrypto/libskycoin/

RUN [ "cross-build-start" ]

RUN ls -oa $GOPATH/src/github.com/skycoin/libskycoin/
RUN sh $GOPATH/src/github.com/skycoin/libskycoin/ci-scripts/docker_install_${QEMU_OS}.sh
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin dep
RUN ls -oa $GOPATH/src/github.com/fibercrypto/libskycoin/
RUN sh $GOPATH/src/github.com/fibercrypto/libskycoin/ci-scripts/docker_install_${QEMU_OS}.sh
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin dep
RUN go get github.com/gz-c/gox
RUN go get -t ./...
ENV CGO_ENABLED=1
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin clean-libc
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin test-libc
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin clean-libc
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin test-libc

RUN [ "cross-build-end" ]

WORKDIR $GOPATH/src/github.com/skycoin
WORKDIR $GOPATH/src/github.com/fibercrypto
VOLUME $GOPATH/src/
9 changes: 9 additions & 0 deletions include/cipher.bip32.path.go.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
typedef struct {
GoSlice_ Elements; // Goslice de bip32__PathNode
} bip32__Path;

// PathNode is an element of an HD wallet path
typedef struct {
BOOL Master;
GoUint32_ ChildNumber;
} bip32__PathNode;
1 change: 1 addition & 0 deletions include/cipher.bip44.bip44.go.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typedef GoUint32_ bip44_CoinType;
8 changes: 7 additions & 1 deletion include/cli.cli.go.h
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
typedef GoSlice_ cli__PasswordFromBytes;
typedef struct {
void* data; ///< Pointer to buffer containing slice data.
GoInt_ len; ///< Number of items stored in slice buffer
GoInt_ cap; ///< Maximum number of items that fits in this slice
///< considering allocated memory and item type's
///< size.
} cli__PasswordFromBytes;
5 changes: 5 additions & 0 deletions include/coin.block.go.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ typedef struct {
coin__Block _unnamed;
cipher__Sig Sig;
} coin__SignedBlock;

typedef struct {
cipher__SHA256 Hash;
cipher__SHA256 PrevHash;
} coin__HashPair;
7 changes: 6 additions & 1 deletion include/coin.outputs.go.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ typedef struct {
GoUint64_ BkSeq;
} coin__UxHead;

typedef GoSlice_ coin__UxArray;

typedef struct {
cipher__SHA256 SrcTransaction;
Expand All @@ -16,3 +15,9 @@ typedef struct {
coin__UxHead Head;
coin__UxBody Body;
} coin__UxOut;

typedef struct {
void* data;
GoInt_ len;
GoInt_ cap;
} coin__UxArray;
Loading