-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Basic loading of attributes from IPNS * Use attributes on roll call/execution * Use noop logger for pebble * Add support for "one-of" attestors alongside "each" * Update usage for roll call
- Loading branch information
Showing
17 changed files
with
260 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
cmd/node/node | ||
cmd/keygen/keygen | ||
cmd/keyforge/keyforge | ||
cmd/bootstrap-limiter/bootstrap-limiter | ||
|
||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
type pebbleNoopLogger struct{} | ||
|
||
func (p *pebbleNoopLogger) Infof(_ string, _ ...any) {} | ||
|
||
func (p *pebbleNoopLogger) Fatalf(_ string, _ ...any) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package execute | ||
|
||
import ( | ||
"github.com/libp2p/go-libp2p/core/peer" | ||
) | ||
|
||
type Attributes struct { | ||
// Values specify which attributes the node in question should have. | ||
// At the moment we support strict equality only, so no `if RAM >= 16GB` types of conditions. | ||
Values []Parameter `json:"values,omitempty"` | ||
|
||
// Should we accept nodes whose attributes are not attested? | ||
AttestationRequired bool `json:"attestation_required,omitempty"` | ||
|
||
// Explicitly request specific attestors. | ||
Attestors AttributeAttestors `json:"attestors,omitempty"` | ||
} | ||
|
||
type AttributeAttestors struct { | ||
// Each of the listed attestors should be found. | ||
Each []peer.ID `json:"each,omitempty"` | ||
|
||
// Any one of these attestors should be found. | ||
OneOf []peer.ID `json:"one_of,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.