Skip to content

Commit adec851

Browse files
switch to Base64Url encoding for certhashes
1 parent db19e64 commit adec851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multiaddr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func TestRoundTrip(t *testing.T) {
547547
"/ip4/127.0.0.1/tcp/123/tls",
548548
"/ip4/127.0.0.1/udp/123",
549549
"/ip4/127.0.0.1/udp/123/ip6/::",
550-
"/ip4/127.0.0.1/udp/1234/quic/webtransport/certhash/zQmbWTwYGcmdyK9CYfNBcfs9nhZs17a6FQ4Y8oea278xx41",
550+
"/ip4/127.0.0.1/udp/1234/quic/webtransport/certhash/uEiDDq4_xNyDorZBH3TlGazyJdOWSwvo4PUo5YHFMrvDE8g",
551551
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP",
552552
"/p2p/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP/unix/a/b/c",
553553
} {

transcoders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,5 +389,5 @@ func certHashStB(s string) ([]byte, error) {
389389
}
390390

391391
func certHashBtS(b []byte) (string, error) {
392-
return multibase.Encode(multibase.Base58BTC, b)
392+
return multibase.Encode(multibase.Base64url, b)
393393
}

0 commit comments

Comments
 (0)