filecoin-project / go-fil-markets

Shared Implementation of Storage and Retrieval Markets for Filecoin Node Implementations
Other
78 stars 59 forks source link

How to call these two functions SignBytes() and SignProposal() #781

Open beatlec opened 1 year ago

beatlec commented 1 year ago

How to call these two functions SignBytes() and SignProposal(), and how to pass in parameters? Where do the parameters come from?

For example, I know the private key of my wallet, how to convert this parameter? what is the parameter b in function SignBytes ?

Calling SignProposal() I got the signature result (clientDealProposal.ClientSignature.Data ) as "signature data", not the actual signature value. This makes me feel very strange, I don't know how to convert the private key?

image

image

image