Skip to content

Commit 6c7d14e

Browse files
committed
docs(auth): update comments for example credentials
1 parent ccbb51a commit 6c7d14e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

examples/auth/auth_basic/auth_basic_main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ import (
1414
clients "github.com/bsv-blockchain/go-sdk/auth/clients/authhttp"
1515
)
1616

17+
// EXAMPLE_CREDENTIALS - These are test/example credentials for demonstration purposes only
18+
// nosemgrep: hardcoded-credential
1719
const (
18-
serverWIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs"
20+
serverWIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs" // gitleaks:allow
1921
clientPrivHex = "143ab18a84d3b25e1a13cefa90038411e5d2014590a2a4a57263d1593c8dee1c"
2022
)
2123

examples/auth/auth_basic_server/auth_basic_server_main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import (
1717
"github.com/bsv-blockchain/go-bsv-middleware/pkg/middleware"
1818
)
1919

20-
const serverWIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs"
20+
// EXAMPLE_CREDENTIAL - This is a test/example WIF for demonstration purposes only
21+
// nosemgrep: hardcoded-credential
22+
const serverWIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs" // gitleaks:allow
2123

2224
func main() {
2325
// The wallet here is tweaked for example purposes.

pkg/internal/testabilities/fixture/fixture_server_identity.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import (
66
primitives "github.com/bsv-blockchain/go-sdk/primitives/ec"
77
)
88

9-
const WIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs"
9+
// WIF is a test fixture credential for internal testing purposes only
10+
// nosemgrep: hardcoded-credential
11+
const WIF = "L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs" // gitleaks:allow
1012

1113
type identity struct {
1214
WIF string

0 commit comments

Comments
 (0)