-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deps): update go-graphsync v0.8.0
Update to go-graphsync v0.8.0 with go-ipld-prime linksystem branch & trusted store.
- Loading branch information
1 parent
5b6d12f
commit ff91033
Showing
20 changed files
with
190 additions
and
147 deletions.
There are no files selected for viewing
Submodule filecoin-ffi
updated
29 files
+96 −22 | .circleci/config.yml | |
+23 −1 | README.md | |
+9 −0 | SECURITY.md | |
+25 −12 | bls.go | |
+3 −2 | build.sh | |
+176 −0 | distributed.go | |
+3 −1 | filcrypto.yml | |
+564 −42 | generated/cgo_helpers.go | |
+13 −8 | generated/const.go | |
+0 −54 | generated/customallocs.go | |
+194 −121 | generated/generated.go | |
+10 −0 | generated/libs.go | |
+85 −46 | generated/types.go | |
+5 −4 | go.mod | |
+19 −2 | go.sum | |
+23 −8 | install-filcrypto | |
+112 −25 | proofs.go | |
+662 −1,464 | rust/Cargo.lock | |
+19 −8 | rust/Cargo.toml | |
+1 −1 | rust/rust-toolchain | |
+48 −14 | rust/src/bls/api.rs | |
+12 −0 | rust/src/bls/types.rs | |
+1 −0 | rust/src/lib.rs | |
+864 −116 | rust/src/proofs/api.rs | |
+116 −0 | rust/src/proofs/types.rs | |
+25 −17 | rust/src/util/api.rs | |
+5 −0 | types.go | |
+6 −0 | version.go | |
+7 −0 | workflows.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package shared_testutil | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/ipfs/go-cid" | ||
"github.com/minio/sha256-simd" | ||
mh "github.com/multiformats/go-multihash" | ||
|
||
"github.com/filecoin-project/go-state-types/abi" | ||
) | ||
|
||
// make a cid directly with a given input and prefix | ||
func MakeCID(input string, prefix *cid.Prefix) cid.Cid { | ||
data := []byte(input) | ||
if prefix == nil { | ||
c, err := abi.CidBuilder.Sum(data) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return c | ||
} | ||
c, err := prefix.Sum(data) | ||
switch { | ||
case errors.Is(err, mh.ErrSumNotSupported): | ||
// multihash library doesn't support this hash function. | ||
// just fake it. | ||
case err == nil: | ||
return c | ||
default: | ||
panic(err) | ||
} | ||
|
||
sum := sha256.Sum256(data) | ||
hash, err := mh.Encode(sum[:], prefix.MhType) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return cid.NewCidV1(prefix.Codec, hash) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.