Merge branch 'protocol'
# Conflicts: # version.go
This commit is contained in:
@@ -121,9 +121,10 @@ func TestOnionSkins_Exit(t *testing.T) {
|
||||
t.Error(e)
|
||||
t.FailNow()
|
||||
}
|
||||
n3 := Gen3Nonces()
|
||||
p := uint16(rand.Uint32())
|
||||
on := OnionSkins{}.
|
||||
Exit(p, prvs, pubs, msg).
|
||||
Exit(p, prvs, pubs, n3, msg).
|
||||
Assemble()
|
||||
onb := EncodeOnion(on)
|
||||
c := slice.NewCursor()
|
||||
@@ -147,6 +148,12 @@ func TestOnionSkins_Exit(t *testing.T) {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
for i := range ex.Nonces {
|
||||
if ex.Nonces[i] != n3[i] {
|
||||
t.Errorf("nonce %d did not unwrap correctly", i)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
plH := sha256.Single(ex.Bytes)
|
||||
if plH != hash {
|
||||
t.Errorf("exit message did not unwrap correctly")
|
||||
@@ -331,7 +338,7 @@ func TestOnionSkins_Response(t *testing.T) {
|
||||
t.FailNow()
|
||||
}
|
||||
on := OnionSkins{}.
|
||||
Response(msg).
|
||||
Response(hash, msg).
|
||||
Assemble()
|
||||
onb := EncodeOnion(on)
|
||||
c := slice.NewCursor()
|
||||
@@ -345,7 +352,7 @@ func TestOnionSkins_Response(t *testing.T) {
|
||||
t.Error("did not unwrap expected type")
|
||||
t.FailNow()
|
||||
}
|
||||
plH := sha256.Single(*ex)
|
||||
plH := sha256.Single(ex.Bytes)
|
||||
if plH != hash {
|
||||
t.Errorf("exit message did not unwrap correctly")
|
||||
t.FailNow()
|
||||
|
||||
@@ -8,11 +8,11 @@ var (
|
||||
// URL is the git URL for the repository.
|
||||
URL = "github.com/Indra-Labs/indra"
|
||||
// GitRef is the gitref, as in refs/heads/branchname.
|
||||
GitRef = "refs/heads/main"
|
||||
GitRef = "refs/heads/protocol"
|
||||
// ParentGitCommit is the commit hash of the parent HEAD.
|
||||
ParentGitCommit = "cd761a6dd73db0061dfb0d6da950ec3a53c08ce4"
|
||||
ParentGitCommit = "88b43a63c852ac28368579723abac54f413141de"
|
||||
// BuildTime stores the time when the current binary was built.
|
||||
BuildTime = "2023-01-04T14:21:04Z"
|
||||
BuildTime = "2023-01-04T14:26:34Z"
|
||||
// SemVer lists the (latest) git tag on the release.
|
||||
SemVer = "v0.1.3"
|
||||
// PathBase is the path base returned from runtime caller.
|
||||
|
||||
Reference in New Issue
Block a user