Fix node claims throughout tests/
#306
Labels
bug
Something isn't working
development
Standard development
r&d:polykey:core activity 3
Peer to Peer Federated Hierarchy
Specification
There are several occurrences of node claims that are being incorrectly set up throughout the testing suites.
Consider the situation where we have two nodes,
B
andC
, with a cryptolink between them (i.e. part of the same gestalt). The cryptolink should be represented by a single claim on each node's sigchain (that's been signed by bothB
andC
). That is,B
will have a single claim signed by both itself andC
, andC
will have a single claim signed by both itself andB
.However, there are some tests that aren't setting this up correctly. For example, in
tests/bin/identities.test.ts
:Here we're incorrectly adding 2 claims, that are singly signed by the owner of the respective sigchain the claim is added to. From the git blame, it seems like this was added prior to the refactoring of node claims though, so just something that's been missed.
Additional context
pk identities claim
command to augment DIs #278 (comment)Tasks
tests
utility function to create a node claim (a doubly signed claim, signed by both nodes' private keys).The text was updated successfully, but these errors were encountered: