Jacek Sieka
|
a15660f70f
|
chore: fix import conflict
There's a new byteutils in newer versions of stew - also, remove
upraises and disable windows testing which requires SSL library install
|
2025-12-10 22:06:29 +01:00 |
|
Mark Spanbroek
|
9611c36c78
|
Update to latest contractabi
|
2022-01-19 09:37:42 +01:00 |
|
Mark Spanbroek
|
5977ea47e3
|
Update to latest version of nim-contract-abi
Encoding is rewritten to make use of the new tuple api.
|
2021-12-06 15:39:27 +01:00 |
|
Mark Spanbroek
|
a8bd625e3f
|
Use contractabi module
Which was extracted from this project.
|
2021-11-25 10:04:10 +01:00 |
|
Mark Spanbroek
|
adcd534eb5
|
Update to version 0.9.1 of questionable
|
2021-05-10 09:12:46 +02:00 |
|
Mark Spanbroek
|
2a8e4e5bf4
|
Allow wallet to be used as a reference type
|
2021-04-19 16:14:27 +02:00 |
|
Mark Spanbroek
|
50d59ce48a
|
Update to questionable 0.7.0
|
2021-04-19 16:12:52 +02:00 |
|
Mark Spanbroek
|
b096093931
|
Update questionable to 0.6.3
|
2021-04-16 12:38:05 +02:00 |
|
Mark Spanbroek
|
85ffad6fb1
|
Update to latest version of questionable
|
2021-04-15 11:15:32 +02:00 |
|
Mark Spanbroek
|
76cc0a9bcc
|
Wallet keeps track of nonces
|
2021-04-14 12:57:14 +02:00 |
|
Mark Spanbroek
|
04beab5b91
|
Simplify
|
2021-04-12 18:11:40 +02:00 |
|
Mark Spanbroek
|
2ac173f87c
|
Update to questionable 0.5.0
|
2021-04-12 16:29:44 +02:00 |
|
Mark Spanbroek
|
f7d06a995b
|
Rename: PrivateKey -> EthPrivateKey, PublicKey -> EthPublicKey
|
2021-04-07 09:15:26 +02:00 |
|
Mark Spanbroek
|
b05d4e2e72
|
Do not expose secp256k1 api
|
2021-04-06 14:00:10 +02:00 |
|
Mark Spanbroek
|
6d75ca5948
|
Wallet exposes its public key
|
2021-04-06 13:49:06 +02:00 |
|
Mark Spanbroek
|
469a8d4154
|
JSON serialization of signed states
|
2021-04-06 12:25:47 +02:00 |
|
Mark Spanbroek
|
9e16807145
|
Use upraises for exception tracking
|
2021-04-06 11:44:33 +02:00 |
|
Mark Spanbroek
|
084f84b1bd
|
Fix compilation error in Nim 1.2.6
|
2021-03-22 15:50:57 +01:00 |
|
Mark Spanbroek
|
bd75f78244
|
By default, return balance of wallet address
|
2021-03-22 15:48:04 +01:00 |
|
Mark Spanbroek
|
85ff1d3835
|
Payment is not accepted when there are unexpected changes in state
|
2021-03-22 15:23:31 +01:00 |
|
Mark Spanbroek
|
f5022a6ee1
|
Do not allow channels with same id as existing channel
|
2021-03-22 14:43:09 +01:00 |
|
Mark Spanbroek
|
28c0f9b076
|
Remove superfluous tuple from signatures
|
2021-03-22 14:23:14 +01:00 |
|
Mark Spanbroek
|
24c83838c7
|
Use ?[] instead of catching KeyError
|
2021-03-22 14:12:01 +01:00 |
|
Mark Spanbroek
|
b797a53e32
|
Accepting payments
|
2021-03-22 14:04:28 +01:00 |
|
Mark Spanbroek
|
40b4782f9d
|
Return updated signed state after payment
|
2021-03-22 09:24:34 +01:00 |
|
Mark Spanbroek
|
40cfe54144
|
make payments
|
2021-03-18 14:16:42 +01:00 |
|
Mark Spanbroek
|
cbc69a69e6
|
Fix compilation errors with Nim 1.2.6
|
2021-03-17 15:34:55 +01:00 |
|
Mark Spanbroek
|
ea3c3bf34d
|
Move basics into their own folder
|
2021-03-17 13:39:31 +01:00 |
|
Mark Spanbroek
|
1d4c612a53
|
Move wallet into its own folder
|
2021-03-17 13:38:17 +01:00 |
|
Mark Spanbroek
|
92bad679b5
|
Replace SignedState.participants() with SignedState.hasParticipant()
|
2021-03-17 13:24:01 +01:00 |
|
Mark Spanbroek
|
e798964ba5
|
Rename: ChannelUpdate -> SignedState
|
2021-03-17 13:10:49 +01:00 |
|
Mark Spanbroek
|
f498228bb9
|
Replace Channel by ChannelId
|
2021-03-17 12:53:30 +01:00 |
|
Mark Spanbroek
|
9efcf21722
|
Use func where possible
|
2021-03-17 12:22:00 +01:00 |
|
Mark Spanbroek
|
2737732e6d
|
Accept incoming channel
|
2021-03-16 12:50:46 +01:00 |
|
Mark Spanbroek
|
48e27a9bd1
|
Verify signatures
|
2021-03-16 10:19:13 +01:00 |
|
Mark Spanbroek
|
c680d34a18
|
Recover ethereum address from signature
|
2021-03-15 17:36:16 +01:00 |
|
Mark Spanbroek
|
292a7ec2ac
|
Wallet: open ledger channel
|
2021-03-15 16:38:04 +01:00 |
|
Mark Spanbroek
|
d1c580eb91
|
Rename: StateUpdate -> ChannelUpdate
|
2021-03-15 11:35:17 +01:00 |
|
Mark Spanbroek
|
c824a3edd1
|
Update to latest version of questionable
|
2021-03-15 11:23:02 +01:00 |
|
Mark Spanbroek
|
5837a655e0
|
Add wallet
|
2021-03-09 16:53:15 +01:00 |
|
Mark Spanbroek
|
9b580395d8
|
Conversion from public key to ethereum address
|
2021-03-09 16:50:28 +01:00 |
|
Mark Spanbroek
|
11a2329bf2
|
Print EthAddress as hex, add zero address
|
2021-03-09 16:50:08 +01:00 |
|
Mark Spanbroek
|
405ba8efd4
|
Add == operator for Outcomes
|
2021-03-09 16:49:16 +01:00 |
|
Mark Spanbroek
|
a945698ec6
|
Add convenience initializer to Outcome
|
2021-03-09 16:48:47 +01:00 |
|
Mark Spanbroek
|
a8b2cfab5a
|
Rename: EthAddress.fromHex() -> EthAddress.parse()
|
2021-03-09 14:05:32 +01:00 |
|
Mark Spanbroek
|
b758751211
|
Add Destination (abstraction for either channel id or eth address)
|
2021-03-09 14:02:01 +01:00 |
|
Mark Spanbroek
|
c87ed22036
|
Extract public/private key logic into separate module
|
2021-03-09 13:16:54 +01:00 |
|
Mark Spanbroek
|
63b9b5452f
|
Rename: Channel -> ChannelDefinition
To avoid name clash with upcoming channel abstraction
in the wallet.
|
2021-03-09 12:41:51 +01:00 |
|
Mark Spanbroek
|
f7dda63c04
|
Move common imports into a "basics" module
|
2021-03-09 11:07:35 +01:00 |
|
Mark Spanbroek
|
4afe88965c
|
Use questionable library for handling Option and Result
|
2021-03-09 09:37:27 +01:00 |
|