Skip to content

Commit

Permalink
Merge pull request #21 from decentral1se/slice-to-match
Browse files Browse the repository at this point in the history
fix: byte slicing type match
  • Loading branch information
decentral1se committed Nov 11, 2022
2 parents fa042d4 + e123767 commit 4b41f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Build smoke test
run: go build -v

- name: Build dev smoke test
run: go build -v -tags dev

- name: install node ssb-stack
run: |
pushd boxstream
Expand All @@ -51,4 +54,3 @@ jobs:

- name: Test against shs1-testsuite
run: cd secrethandshake/tests && make test

3 changes: 2 additions & 1 deletion secrethandshake/string.go
@@ -1,3 +1,4 @@
//go:build dev
// +build dev

// SPDX-FileCopyrightText: 2021 The Secretstream Authors
Expand All @@ -18,7 +19,7 @@ func (s *State) String() string {
buf.WriteString("State {")

appKeyHex := make([]byte, 2*len(s.appKey))
hex.Encode(appKeyHex, s.appKey)
hex.Encode(appKeyHex, s.appKey[:])
buf.WriteString("\n\tappKey: ")
buf.Write(appKeyHex)

Expand Down

0 comments on commit 4b41f89

Please sign in to comment.