You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, internally it immediately converts these keys to core.PublicKey. What's more, the spawn arguments for the same type require an array of core.PublicKey:
note that core.PublicKey is a 32 byte array, the reason why it is a an array is to avoid length prefixing every public key when encoding spawn arguments. obviously the same is true for decoding. this conversion is intentional.
ed25519.PublicKey is a slice, that doesn't do copy when passed around, and also every crypto library exposes public key as a slice, so it won't be convenient to do a cast to *[32]byte earlier.
i doubt that "unification" of types makes sense, it is better to close this issue
is it because you had to use spawn arguments struct directly? and in addition to that used "sdk" API?
i looked at functions in sdk module and it doesn't accept core.PublicKey anywhere
Description
This method takes
pubs
public keys as typeed25519.PublicKey
:go-spacemesh/genvm/sdk/multisig/tx.go
Lines 73 to 89 in 1be211b
However, internally it immediately converts these keys to
core.PublicKey
. What's more, the spawn arguments for the same type require an array ofcore.PublicKey
:go-spacemesh/genvm/templates/multisig/types.go
Lines 13 to 17 in 1be211b
Let's unify these types.
SelfSpawn
should probably takecore.PublicKey
.This issue appears in commit hash: 1be211b
The text was updated successfully, but these errors were encountered: