Skip to content

Commit

Permalink
Merge branch 'governor_limit_lowering_aug_2024' of https://github.com…
Browse files Browse the repository at this point in the history
…/wormhole-foundation/wormhole into governor_limit_lowering_aug_2024
  • Loading branch information
Maxwell Dulin authored and Maxwell Dulin committed Sep 5, 2024
2 parents 38c3363 + cf2cfcf commit 08037e8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
4 changes: 4 additions & 0 deletions node/pkg/processor/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ func (p *Processor) handleMessage(k *common.MessagePublication) {
// Broadcast the signature.
ourObs, msg := p.broadcastSignature(v.MessageID(), k.TxHash.Bytes(), digest, signature, shouldPublishImmediately)

// Indicate that we observed this one.
observationsReceivedTotal.Inc()
observationsReceivedByGuardianAddressTotal.WithLabelValues(p.ourAddr.Hex()).Inc()

// Get / create our state entry.
s := p.state.signatures[hash]
if s == nil {
Expand Down
33 changes: 30 additions & 3 deletions whitepapers/0009_guardian_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ The Guardian Key is used to:

1. Sign gossip messages
1. heartbeat
2. governor config and governor status
3. observation request
2. Sign Observations
1. governor config and governor status
1. observation request
1. Sign Observations
1. Version 1 VAAs
1. Sign Guardian identification
1. Wormchain account registration
1. Sign Accountant observations
1. Token Bridge
1. NTT
1. Sign Query responses

## Detailed Design

Expand All @@ -35,3 +41,24 @@ Rationale

- Gossip messages cannot be confused with other gossip messages because the message type prefix is prepended.
- Gossip messages cannot be confused with observations because observations utilize a double-Keccak256 and the payload is enforced to be `>=34` bytes.

## Prefixes Used

<!-- cspell:disable -->

```go
acct_sub_obsfig_000000000000000000| // token bridge accountant observation
ntt_acct_sub_obsfig_00000000000000| // ntt accountant observation
governor_config_000000000000000000| // gossip governor config
governor_status_000000000000000000| // gossip governor status
heartbeat| // gossip heartbeat
signed_observation_request| // gossip signed observation request
mainnet_query_request_000000000000| // query request (mainnet, not signed by guardian)
testnet_query_request_000000000000| // query request (testnet, not signed by guardian)
devnet_query_request_0000000000000| // query request (devnet, not signed by guardian)
query_response_0000000000000000000| // query response
query_response_0000000000000000000| // query response
signed_wormchain_address_00000000| // wormchain register account as guardian
```

<!-- cspell:enable -->

0 comments on commit 08037e8

Please sign in to comment.