How to convert piece CID string to hex bytes #633
Unanswered
longfeiWan9
asked this question in
Q&A
Replies: 1 comment
-
First, you should have the Then you can convert it like the following code.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When submitting storage deal proposal via client contract, we normally need to pass pieceCID in bytes format. But when we prepare data using tools like lighthouse.storage or generate-car, we normally receive pieceCID in string format.
For instance, pieceCID = "baga6ea4seaqkp2pjlh6avlvee6ib2maanav5sc35l5glf3zm6rd6hmfgcx5xeji". How to convert it to bytes format.
Beta Was this translation helpful? Give feedback.
All reactions