Compare commits
3 Commits
gx/v0.7.22
...
gx/v0.7.23
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9949dd29e5 | ||
|
|
75d3ffe549 | ||
|
|
8028fee095 |
@@ -1 +1 @@
|
||||
0.7.22: QmYVNvtQkeZ6AKSwDrjQTs432QtL6umrrK41EBq3cu7iSP
|
||||
0.7.23: QmVcXtRn6gpoSvoCWAxKUeS26QW4wTJgKQTbL1LsUU72R5
|
||||
|
||||
6
cid.go
6
cid.go
@@ -77,6 +77,8 @@ const (
|
||||
BitcoinTx = 0xb1
|
||||
ZcashBlock = 0xc0
|
||||
ZcashTx = 0xc1
|
||||
DecredBlock = 0xe0
|
||||
DecredTx = 0xe1
|
||||
)
|
||||
|
||||
// Codecs maps the name of a codec to its type
|
||||
@@ -99,6 +101,8 @@ var Codecs = map[string]uint64{
|
||||
"bitcoin-tx": BitcoinTx,
|
||||
"zcash-block": ZcashBlock,
|
||||
"zcash-tx": ZcashTx,
|
||||
"decred-block": DecredBlock,
|
||||
"decred-tx": DecredTx,
|
||||
}
|
||||
|
||||
// CodecToStr maps the numeric codec to its name
|
||||
@@ -120,6 +124,8 @@ var CodecToStr = map[uint64]string{
|
||||
BitcoinTx: "bitcoin-tx",
|
||||
ZcashBlock: "zcash-block",
|
||||
ZcashTx: "zcash-tx",
|
||||
DecredBlock: "decred-block",
|
||||
DecredTx: "decred-tx",
|
||||
}
|
||||
|
||||
// NewCidV0 returns a Cid-wrapped multihash.
|
||||
|
||||
@@ -33,6 +33,8 @@ var tCodecs = map[uint64]string{
|
||||
BitcoinTx: "bitcoin-tx",
|
||||
ZcashBlock: "zcash-block",
|
||||
ZcashTx: "zcash-tx",
|
||||
DecredBlock: "decred-block",
|
||||
DecredTx: "decred-tx",
|
||||
}
|
||||
|
||||
func assertEqual(t *testing.T, a, b *Cid) {
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
"license": "MIT",
|
||||
"name": "go-cid",
|
||||
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
|
||||
"version": "0.7.22"
|
||||
"version": "0.7.23"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user