Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
adec8516
Commit
adec8516
authored
Jun 20, 2022
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to Base64Url encoding for certhashes
parent
db19e64f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
multiaddr_test.go
multiaddr_test.go
+1
-1
transcoders.go
transcoders.go
+1
-1
No files found.
multiaddr_test.go
View file @
adec8516
...
@@ -547,7 +547,7 @@ func TestRoundTrip(t *testing.T) {
...
@@ -547,7 +547,7 @@ func TestRoundTrip(t *testing.T) {
"/ip4/127.0.0.1/tcp/123/tls"
,
"/ip4/127.0.0.1/tcp/123/tls"
,
"/ip4/127.0.0.1/udp/123"
,
"/ip4/127.0.0.1/udp/123"
,
"/ip4/127.0.0.1/udp/123/ip6/::"
,
"/ip4/127.0.0.1/udp/123/ip6/::"
,
"/ip4/127.0.0.1/udp/1234/quic/webtransport/certhash/
zQmbWTwYGcmdyK9CYfNBcfs9nhZs17a6FQ4Y8oea278xx41
"
,
"/ip4/127.0.0.1/udp/1234/quic/webtransport/certhash/
uEiDDq4_xNyDorZBH3TlGazyJdOWSwvo4PUo5YHFMrvDE8g
"
,
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP"
,
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP"
,
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP/unix/a/b/c"
,
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP/unix/a/b/c"
,
}
{
}
{
...
...
transcoders.go
View file @
adec8516
...
@@ -389,5 +389,5 @@ func certHashStB(s string) ([]byte, error) {
...
@@ -389,5 +389,5 @@ func certHashStB(s string) ([]byte, error) {
}
}
func
certHashBtS
(
b
[]
byte
)
(
string
,
error
)
{
func
certHashBtS
(
b
[]
byte
)
(
string
,
error
)
{
return
multibase
.
Encode
(
multibase
.
Base
58BTC
,
b
)
return
multibase
.
Encode
(
multibase
.
Base
64url
,
b
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment