Commit Graph

112 Commits

Author SHA1 Message Date
Johan Nordberg b7159b43b6 Simplify request API 2018-06-14 13:30:38 +02:00
Johan Nordberg 70d36f8038 Add a Init from seed helper to private keys 2018-06-14 13:30:38 +02:00
Johan Nordberg 4c5cc332ed Add private key data getter 2018-06-14 13:30:38 +02:00
Johan Nordberg d7a166e2ab Add GetAccounts API request 2018-06-14 13:30:38 +02:00
Johan Nordberg 015cf103cf Add better client error descriptions and a sync request helper 2018-06-14 13:30:38 +02:00
Johan Nordberg d00e2e41ea
Vendored secp256k1 (#8)
* Vendor secp256k1

* Don’t use GMP

* Remove modulemaps

Should be easier to build on iOS

* Tests no longer needs libsecp256k1

* Fix typo in readme
2018-06-06 13:26:36 +02:00
Johan Nordberg a9f7638bba Update test manifests 2018-06-05 12:25:03 +02:00
Johan Nordberg 865bf3ac17 Implement SteemURL 2018-06-05 12:25:03 +02:00
Johan Nordberg 113c74f522 Lint and some extra tests 2018-06-05 12:25:03 +02:00
Johan Nordberg a33fae0548 Fix bug where some public keys would not decode 2018-06-05 12:25:03 +02:00
Johan Nordberg c0d4c580c7 Block extensions 2018-06-05 12:25:03 +02:00
Johan Nordberg a41fd35534 Typofix 2018-06-05 12:25:03 +02:00
Johan Nordberg e995631adf Make all operations conform to Equatable 2018-06-05 12:25:03 +02:00
Johan Nordberg 4eef416a94 Implement custom type for key and account auths 2018-06-05 12:25:03 +02:00
Johan Nordberg 25311eab11 Temp disable witness update operation props
Bug in steemd sends new asset format causing decoder to throw
2018-06-05 12:25:03 +02:00
Johan Nordberg 75b9d1b49a Implement all operation types 2018-06-05 12:25:03 +02:00
Johan Nordberg 868258f699 Add transaction decoding test 2018-06-05 12:25:03 +02:00
Johan Nordberg 5600c27a11 Fix builds on Linux and add warning
This could be addressed by specifying custom CodingKey enums for all structs or using snake_case natively. Will probably fix itself soon though.
2018-06-05 12:25:03 +02:00
Johan Nordberg e9450eeb53 Add a ton of tests 2018-06-05 12:25:03 +02:00
Johan Nordberg 12eeabb39f Add Decodable conformance to PublicKey 2018-06-05 12:25:03 +02:00
Johan Nordberg db79fd9735 Make operations and assets equatable 2018-06-05 12:25:03 +02:00
Johan Nordberg 1eff84a601 Add some API requests and responses 2018-06-05 12:25:03 +02:00
Johan Nordberg 5a5649c069 Add block types 2018-06-05 12:25:03 +02:00
Johan Nordberg 59c44415c3 Add stubs for all operation types 2018-06-05 12:25:03 +02:00
Johan Nordberg 5b6c6563c9 Better SignedTransaction type 2018-06-05 12:25:03 +02:00
Johan Nordberg e2b6f76461 Add JSON encoding helpers 2018-06-05 12:25:03 +02:00
Johan Nordberg d8f1e12f7e Add SignedTransaction type 2018-06-05 12:25:03 +02:00
Johan Nordberg 15c0e6c89c Move Random to own file 2018-06-05 12:25:03 +02:00
Johan Nordberg fa78bc0365 Refactor protocol encoder and rpc client
Now uses swift Codable protocols
2018-06-05 12:25:03 +02:00
Johan Nordberg 3a62d3c22b Run formatter 2018-06-05 12:25:03 +02:00
Johan Nordberg 3324cf1e1b Add asset type 2018-06-05 12:25:03 +02:00
Johan Nordberg 4fff5317c8 Refactor serialiser and implement transaction and operation types 2018-06-05 12:25:03 +02:00
Johan Nordberg ad45c7dcb7 Add protocol primitives 2018-06-05 12:25:03 +02:00
Johan Nordberg 258dd51ec0 Document more and fix docgen 2018-05-24 10:08:20 +02:00
Johan Nordberg df7a44fef9 Implement PrivateKey PublicKey and Signature types 2018-05-24 10:08:20 +02:00
Johan Nordberg fb24f2298a Loose some unnecessary crypto functions 2018-05-24 10:08:20 +02:00
Johan Nordberg 26caab0c21 Implement Base58 bindings 2018-05-24 10:08:20 +02:00
Johan Nordberg f72e973333 Add crypto primitives 2018-05-24 10:08:20 +02:00
Johan Nordberg b35b90c334 Add and run swift formatter 2018-05-24 10:08:20 +02:00
Johan Nordberg 5d9fda9e6d Cache libsecp256k1 builds on MacOS as well 2018-05-24 10:08:20 +02:00
Johan Nordberg fa85895710 Typofix 2018-05-24 10:08:20 +02:00
Johan Nordberg 7c2dbd5d17 Cache libsecp256k1 builds on Linux 2018-05-24 10:08:20 +02:00
Johan Nordberg ccba62b345 Secure random on Linux 2018-05-24 10:08:20 +02:00
Johan Nordberg 753b24ffe6 Run ldconfig before tests 2018-05-24 10:08:20 +02:00
Johan Nordberg 33e26c0f18 Fix yaml syntax 2018-05-24 10:08:20 +02:00
Johan Nordberg 3c8f646d07 Install libsecp256k1 on linux 2018-05-24 10:08:20 +02:00
Johan Nordberg 481a7719e1 Fix build on Linux 2018-05-24 10:08:20 +02:00
Johan Nordberg 1a54a7585a Add libsecp256k1 to macOS test env 2018-05-24 10:08:20 +02:00
Johan Nordberg f81e600d23 Use public url for swift-secp256k1 dependency 2018-05-24 10:08:20 +02:00
Johan Nordberg 3e3d1898db Implement secp256k1 bindings 2018-05-24 10:08:20 +02:00