tomFlowee
1efcc39f42
Avoid doing work for an empty wallet.
2021-10-27 19:14:09 +02:00
tomFlowee
cc2b725452
Install random.h from flowee_utils
2021-10-27 19:14:09 +02:00
tomFlowee
851d147dcd
Add way to go from seed to mnemonic.
2021-10-27 19:14:09 +02:00
tomFlowee
6da5090202
Make converter method available in API.
...
This allows people to validate and convert a deriviation path from a
string to a vector of numbers.
2021-10-18 22:59:11 +02:00
tomFlowee
b8e6ddfb19
Add a specific operator=
...
This avoids checkers being worries about the inconsistency of a
specific copy-constructor but a generic assignment operator.
The assignment operator can be generic because locking doesn't
care what the content is.
2021-10-13 17:06:58 +02:00
tomFlowee
4252e859e7
Remove obsolete (and untested) code.
2021-10-13 17:06:58 +02:00
tomFlowee
c264641cbe
Provide hierarchically deterministic wallet parts
...
This introduces a Mnemonic class for BIP39 (seed words)
validation as well as a HDMasterKey class with provides the
BIP32 & BIP43 support.
All tests went into the apputils unit test.
2021-10-13 17:03:02 +02:00
tomFlowee
3f422e501b
Provide hashing code for bip39
2021-10-13 16:42:48 +02:00
tomFlowee
a5c4a308f4
We reached 700K, pre-allocate more :)
2021-08-09 21:22:25 +02:00
tomFlowee
e30c4ceca5
Wrap new feature in ifdef
...
The API-wise nice addition of base58 encoding learning about
private keys has as a downside that external projects get the
surprise of pulling in a lot more code.
Those that want to avoid this, while not using private keys, can
simply add
add_definitions(-DNPRIVKEY) # avoid private-key using code
to their CMake file.
2021-08-09 20:04:27 +02:00
tomFlowee
6692a0a11a
Follow API change in NWM.
...
Setting the ringbuffers to not-so-tiny values
2021-08-05 23:03:19 +02:00
tomFlowee
b1f6f497dd
Prevent misuse of API
2021-08-05 22:43:24 +02:00
tomFlowee
4cf26ee529
Fix a very niche bug.
2021-08-05 22:42:58 +02:00
tomFlowee
d355c5f0ab
Make the reconnect timeout more agressive.
...
The first bunch of times we want to reconnect much faster so we have less
downtime and faster response.
After a while it goes up to a slower timeout in order to not overload
logs and other such.
2021-08-05 22:42:58 +02:00
tomFlowee
bd3c1c3b7a
Avoid a too small ring buffer.
2021-08-05 22:03:24 +02:00
tomFlowee
56f083e3b6
Ensure sane queue size
...
This is based on the fact that a ringbuffer is not very happy if its only
got one element.
2021-08-05 22:02:45 +02:00
tomFlowee
d73763977c
Avoid calls to listeners while we have a lock.
...
This is a library class, lets be nice to users of our class and
avoid deadlocks.
2021-07-31 18:25:24 +02:00
tomFlowee
3bac1cc9e0
Add setData for CKey style data.
2021-07-31 17:36:15 +02:00
tomFlowee
77bd1ac74f
Improve the SPV sync action.
...
This re-thinks the way we assign new peers and massively speeds up the
finding of enough peer for our wallets.
2021-07-30 16:56:25 +02:00
tomFlowee
0e6f2bec29
Add 'Last' priority.
2021-07-30 14:03:29 +02:00
tomFlowee
4411ecb2e5
Fix API docs.
2021-07-30 14:03:03 +02:00
tomFlowee
45851de8b9
Fix and add log message on action.
2021-07-30 14:02:33 +02:00
tomFlowee
e998e64c8f
Register task.
2021-07-30 10:01:31 +02:00
tomFlowee
0d8845386d
API docs.
2021-07-30 10:01:06 +02:00
tomFlowee
47f0d955bb
Add double include protection
2021-07-29 20:26:03 +02:00
tomFlowee
2308600929
Add convenience constructor.
2021-07-26 15:01:25 +02:00
tomFlowee
773eafc892
make compile
2021-07-15 13:10:05 +02:00
tomFlowee
9ec0bf9aec
Don't re-connect when user calls connect()
...
User code may not check if it was already connected before calling
connect(), so we do it for them.
2021-07-15 12:47:27 +02:00
tomFlowee
e0a41be5a3
Add API docs for this method
2021-07-15 12:47:15 +02:00
tomFlowee
d2637075c2
Add more API docs
2021-07-15 12:47:01 +02:00
tomFlowee
f7dcf8779d
Merge branch 'master' of origin:thehub
2021-07-15 11:06:28 +02:00
tomFlowee
3447230371
[NVM] Make ipv6 based error messages better.
...
Avoid just appending the portnumber with a colon as that does not help
readability on ipv6 type addresses.
This now neatly adds the square brackets as needed.
2021-07-15 00:08:50 +02:00
tomFlowee
935a96746f
Add API docs.
2021-07-14 11:20:06 +02:00
tomFlowee
e7a229e806
Add some API docs.
2021-07-01 20:09:04 +02:00
tomFlowee
da341c2be7
fix typo
2021-06-30 16:55:06 +02:00
tomFlowee
e6b02da76b
Add secure way to do login on incoming connections.
...
This adds a baseclass for clients to inherit to make it even easier to
do login. Check ConnectionAuthorizer
2021-06-27 12:37:46 +02:00
tomFlowee
0196bc8bca
Remove unused variable.
2021-06-27 11:42:47 +02:00
tomFlowee
2b6b3a3d5a
Fix api docs.
2021-06-26 22:17:46 +02:00
tomFlowee
c8a531e6f8
Comments and fix warning
...
Statics should be PODs.
2021-06-24 19:10:14 +02:00
tomFlowee
ae78dd0bb8
Update email address
2021-06-20 22:44:44 +02:00
tomFlowee
e576187650
Some comments.
2021-06-15 22:26:14 +02:00
tomFlowee
223cc61968
Remove dead code
2021-06-12 12:20:06 +02:00
tomFlowee
41339aea30
Add txid to messsage
...
Closes isse #10
The message sent from the AddressMonitorService, when a matching
transaction is included in a block, now also contains the txid as well
as the offset-in-block.
2021-06-02 16:37:03 +02:00
tomFlowee
d18e13b93b
Add new callback on DataListenerInterface when we synched headers
2021-05-28 14:53:19 +02:00
tomFlowee
460d4be807
Add new method Blockchain::blockHeightAtTime()
2021-05-28 14:52:27 +02:00
tomFlowee
d17b8f0c40
Add API docs for new static-headers method.
2021-05-28 12:42:30 +02:00
tomFlowee
c45e7d9c3e
[P2P] Do not save blockchain data when not changed
2021-05-27 19:08:46 +02:00
tomFlowee
d1fa3fa4a9
[P2P] Allow static loading of blockheaders
...
This adds a unit test for the Blockchain class in the p2p lib and this
introduces the functionality to have a blockchain pre-shipped with an
app.
2021-05-27 19:08:46 +02:00
tomFlowee
ccb1016ac7
Avoid deep-copying a bloomfilter when possible.
2021-05-27 19:08:46 +02:00
tomFlowee
3f91689e3e
Minor refactor of bloomfilter.
...
Rename fields to follow the coding guidelines.
Add an isEmpty() getter.
2021-05-23 17:49:57 +02:00