Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

when to impl put deploy for secp256k1 module #7

Open
raojianli opened this issue Jan 5, 2022 · 0 comments
Open

when to impl put deploy for secp256k1 module #7

raojianli opened this issue Jan 5, 2022 · 0 comments

Comments

@raojianli
Copy link

	amountBytes, err := serialization.Marshal(serialization.U512{Int: *amount})
	if err != nil {
		return nil
	}

	var accountHex string

	if target.Tag == keypair.KeyTagEd25519 {
		accountHex = ed25519.AccountHash(target.PubKeyData)
	} else {
		// FIXME: implement secp256k1 module
		return nil
	}

	idValue := Value{
		Tag:        types.CLTypeOption,
		IsOptional: true,
		Optional: &Value{
			Tag: types.CLTypeU64,
		},
	}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant