Commit Graph

162 Commits

Author SHA1 Message Date
ASuciuX
0ff3ccbbd8 added the mutants from PR #4483 2024-03-26 14:24:59 +02:00
Aaron Blankstein
207cb690fe feat: naka miner acts as signer set coordinator during block signing
* Replaces msg_id u32 with an enum for message identification
* Adds an additional slot for miner messages
* Adds a sync channel for listening to StackerDB events
* Adds a StackerDBs method for pushing a chunk locally and emitting event
* Uses a new message type to store DKG results, to be read by miners to instantiate coordinator
* Uses a test signing channel for nakamoto integration tests
* Currently builds with a branch of wsts
2024-03-14 09:41:49 -05:00
Hank Stoever
574f73248c feat: setup basic signerDB 2024-03-06 10:23:25 +01:00
Matthew Little
72d473ace9 Merge branch 'next' into fix/stacks-client-endpoint-dns 2024-03-04 18:07:49 +01:00
Matthew Little
05e26e0805 fix: resolve DNS/hostnames for signer node_host value #4466 2024-03-04 15:34:49 +01:00
Mårten Blankfors
ac03fc769a fix: Port binding conflict in client::stackerdb::tests 2024-03-04 11:38:58 +01:00
Jeff Bencin
aa0f6d7e4b chore: Remove unnecessary sha2-asm dependency 2024-03-01 15:17:44 -05:00
ASuciuX
2ff19e8c07 Merge branch 'next' into mutants/add-skip-attribute-to-timeout-functions 2024-02-27 15:07:52 +02:00
Jeff Bencin
059ae88dea chore: Use jemalloc global allocator on supported platforms 2024-02-20 17:39:19 -05:00
Jeff Bencin
f8c6760734 chore: Replace HashMap and HashSet with Hashbrown versions (skip ./stackslib and ./testnet/stacks-node) 2024-02-20 11:10:01 -05:00
ASuciuX
9229511485 feat: add function headers for timeout functions in 'stacks-node' 2024-02-19 19:45:52 +02:00
Joey Yandle
7b42ff155c update wsts workspace dependency to v8.1 2024-02-15 16:09:45 -05:00
Aaron Blankstein
41df072c8d chore: update ed25519-dalek and rand libraries, use workspace versioning 2024-02-15 13:32:56 -06:00
ASuciuX
881993c5a9 feat: skip mutants on functions that previously timed out 2024-02-15 18:44:11 +02:00
Matthew Little
163bb08109 fix: buids on various archs/platforms 2024-02-09 16:29:57 +01:00
Joey Yandle
20d0ddbef9 rev wsts dep to get malicious dkg private handling; pass signer public keys in Point format to coordinator config
fmt fixes

implement StacksMessageCodecExtensions for DkgFailure and friends

flesh out skeleton StacksMessageCodecExtensions for DkgFailure

fix test to use proper DkgFailure enum not string
2024-02-08 17:34:49 -05:00
Jacinta Ferrant
20d78690fe Use serial to ensure tests do not clash
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-05 11:10:41 -08:00
Jacinta Ferrant
c84e4441cc Remove bincode by adding serialization functions for all wsts Packet types
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-02 15:17:08 -08:00
Jude Nelson
81ce70281d Merge branch 'chore/merge-2.4.0.1.0-to-develop' into chore/merge-2.4.0.1.0-develop-to-next 2024-02-01 17:45:48 -05:00
Jacinta Ferrant
a705604890 Move filtering of messages out ot stacks-signer into libsigner
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-25 09:16:34 -08:00
Marzi
f7751ae44d Fixes/improvements from review comments 2024-01-24 17:11:43 -05:00
Marzi
485164dbf9 Add unit tests for calculate_coordinator + incorporate review feedbacks 2024-01-23 17:44:29 -05:00
Marzi
6a048a7bb7 Select stacks-signer coordinator dynamically 2024-01-23 17:44:15 -05:00
Jacinta Ferrant
38d5a27f87 Broadcast block submissions in failure and success cases
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-23 11:36:58 -08:00
Jacinta Ferrant
3094df2b89 Update wsts version to 7.0
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-19 14:34:09 -08:00
Jude Nelson
58019925e4 Merge master to develop 2024-01-17 16:16:42 -05:00
Jacinta Ferrant
13ae8cdb81 Add stackerdb_dkg_sign test to CI
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-16 17:30:07 -05:00
Jacinta Ferrant
afd45fe7cd Remove use of pox contract and miners contract configs and update test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-16 17:30:07 -05:00
Jacinta Ferrant
f46454c551 WIP: add block events to libsigner
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-16 17:30:07 -05:00
Jacinta Ferrant
f3226a9b20 Add naka integration test to check block written to stacker db .miners instance
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-09 16:25:15 -05:00
Jacinta Ferrant
3e21883fba Update wsts version to 6.0 and use Packet::verify function
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-01-04 09:50:43 -05:00
Jude Nelson
ea7b165363 chore: address PR feedback 2023-12-13 15:07:10 -05:00
Aaron Blankstein
636230795a requirements for configuring nakamoto-neon via CLI/toml 2023-12-13 07:55:33 -06:00
Aaron Blankstein
54916105fd chore: handle merge/rebase artifacts, address PR feedback 2023-12-13 07:55:33 -06:00
Jude Nelson
690fcdc0c5 Merge branch 'next' into feat/tenure-change-validation 2023-12-01 15:01:24 -05:00
Jacinta Ferrant
521d20fb35 Boot nakamoto by simulating signer DKG rounds to set dkg in contract
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-11-30 10:15:21 -05:00
Jacinta Ferrant
1a45811b37 Add a test for schnorr signature serde
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-11-30 10:15:21 -05:00
Jacinta Ferrant
4cad8baf8f Update wsts and p256k1 libs to latest
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-11-30 10:15:21 -05:00
Jeff Bencin
0b88a92aa5 Update wsts to v5.0.0
This commit also contains the following changes:
  - Make `ThresholdSignature` wrapper around `wsts::common::signature` in order to use `verify()`
  - Eliminate `p256k1` from `Cargo.toml`
  - Use a common version of `wsts` for all workspace members

I had to update all workspace members, including `stacks-signer`, because it wouldn't build if `stackslib` was using a different version of `wsts`
2023-11-29 12:21:46 -05:00
Jeff Bencin
252b77f072 Merge branch 'stacks/next' into feat/add-tenure-change 2023-11-20 18:07:36 -05:00
Jude Nelson
d47a9c4fb6 Merge branch 'develop' into chore/merge-develop-to-next-20241113 2023-11-17 15:05:01 -05:00
Jeff Bencin
694b7606c7 Add threshold signature to TenureChange message using types from wsts 2023-11-10 17:23:44 -05:00
Hugo Caillard
00d5a36ff4 tests: migrate core contracts test to clarinet-sdk 2023-11-03 18:00:48 +01:00
Jude Nelson
167a8a7b20 Merge branch 'develop' into feat/http-rpc-refactor 2023-11-01 12:57:52 -04:00
Jude Nelson
a6af3783a1 Merge branch 'develop' into feat/http-rpc-refactor 2023-10-21 06:37:51 -04:00
Jacinta Ferrant
1c5fcca9ed WIP: broken integration tests due to getting aggregate public key. Add retry logic to all http requests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
cf3619fe97 Fix rebase issues
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
soju-drinker
dba2277580 wip: dkg contract interactions 2023-10-17 14:48:37 -07:00
soju-drinker
5f6c8427d5 wip: dkg contract interactions 2023-10-10 14:27:22 -07:00
Jude Nelson
5f310ec9a2 Merge branch 'next' into feat/nakamoto-blocks 2023-10-09 15:29:12 -04:00