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
dms3
go-verifcid
Commits
3bed6276
Commit
3bed6276
authored
Jul 27, 2018
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx deps
parent
00af99ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
4 deletions
+32
-4
package.json
package.json
+28
-0
validate.go
validate.go
+2
-2
validate_test.go
validate_test.go
+2
-2
No files found.
package.json
0 → 100644
View file @
3bed6276
{
"author"
:
"why"
,
"bugs"
:
{},
"gx"
:
{
"dvcsimport"
:
"github.com/ipfs/go-verifcid"
},
"gxDependencies"
:
[
{
"author"
:
"multiformats"
,
"hash"
:
"QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8"
,
"name"
:
"go-multihash"
,
"version"
:
"1.0.8"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmYVNvtQkeZ6AKSwDrjQTs432QtL6umrrK41EBq3cu7iSP"
,
"name"
:
"go-cid"
,
"version"
:
"0.7.22"
}
],
"gxVersion"
:
"0.12.1"
,
"language"
:
"go"
,
"license"
:
""
,
"name"
:
"go-verifcid"
,
"releaseCmd"
:
"git commit -a -m
\"
gx publish $VERSION
\"
"
,
"version"
:
"0.0.0"
}
validate.go
View file @
3bed6276
...
...
@@ -3,8 +3,8 @@ package verifcid
import
(
"fmt"
mh
"gx/ipfs/QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8/go-multihash
"
cid
"gx/ipfs/QmYVNvtQkeZ6AKSwDrjQTs432QtL6umrrK41EBq3cu7iSP/go-cid
"
cid
"github.com/ipfs/go-cid
"
mh
"github.com/multiformats/go-multihash
"
)
var
ErrPossiblyInsecureHashFunction
=
fmt
.
Errorf
(
"potentially insecure hash functions not allowed"
)
...
...
validate_test.go
View file @
3bed6276
...
...
@@ -3,9 +3,9 @@ package verifcid
import
(
"testing"
mh
"g
x/ipfs/QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8
/go-multihash"
mh
"g
ithub.com/multiformats
/go-multihash"
cid
"g
x/ipfs/QmYVNvtQkeZ6AKSwDrjQTs432QtL6umrrK41EBq3cu7iSP
/go-cid"
cid
"g
ithub.com/ipfs
/go-cid"
)
func
TestValidateCids
(
t
*
testing
.
T
)
{
...
...
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