Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filecoin SignedMessage how to use java MarshalCBOR #2

Open
jc0803kevin opened this issue Sep 22, 2021 · 0 comments
Open

filecoin SignedMessage how to use java MarshalCBOR #2

jc0803kevin opened this issue Sep 22, 2021 · 0 comments

Comments

@jc0803kevin
Copy link

filecoin SignedMessage how to use java MarshalCBOR .

The following is the source code of go language, how to use Java language to encode it


type SignedMessage struct {
	Message   Message
	Signature crypto.Signature
}

type Message struct {
	Version uint64

	To   address.Address
	From address.Address

	Nonce uint64

	Value abi.TokenAmount

	GasLimit   int64
	GasFeeCap  abi.TokenAmount
	GasPremium abi.TokenAmount

	Method abi.MethodNum
	Params []byte
}

type Signature struct {
	Type SigType
	Data []byte
}

``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant