Error sealing envelope: ecies: unsupported ECIES parameters

cybercocyberco Member Posts: 20
I'm trying to get two Go Whisper processes to talk with one another. I'm currently stuck while trying to specify a 'to' in an envelope:
    
envelope, err := msg.Seal(whisper.DefaultPow, whisper.Opts{
    Ttl:  whisper.DefaultTtl,
    From: myPrivateKey,
    To:   recipientPublicKey,
})
recipientPublicKey is an ecdsa.PublicKey with a Curve:elliptic.p256Curve. Here's some runtime output with the resulting error "Error sealing envelope: ecies: unsupported ECIES parameters".

=Public key: &ecdsa.PublicKey{Curve:elliptic.p256Curve{CurveParams:(*elliptic.CurveParams)(0xc20800b110)}, X:20025397652268185136231749956258973939512059517075898070371565885923255281790, Y:20460652666243638632179510982197577261815002603332666669020340201331814216627}

=Curve: elliptic.p256Curve{CurveParams:(*elliptic.CurveParams)(0xc20800b110)}

=Curve params: &elliptic.CurveParams{P:115792089210356248762697446949407573530086143415290314195533631308867097853951, N:115792089210356248762697446949407573529996955224135760342422259061068512044369, B:41058363725152142129326129780047268409114441015993725554835256314039467401291, Gx:48439561293906451759052585252797914202762949526041747995844080717082404635286, Gy:36134250956749795798585127919587881956611106672985015071877198253568414405109, BitSize:256}

Error sealing envelope:  ecies: unsupported ECIES parameters
I have no clue why this breaks. I am using my own generated keys and I'm not using the whisper.NewIdentity method to do so (the only difference being that the keys are not added to whisper.keys, but I'm not sure if that makes a difference).
Sign In or Register to comment.