solana icon indicating copy to clipboard operation
solana copied to clipboard

Add serialize/deserialize to ElGamalPubkey and AeCiphertext

Open nikhil-helius opened this issue 1 year ago • 3 comments

Problem

Allow serialisation derivatives for AeCiphertextVisitor , ElGamalCiphertext and ElGamalPubkey in order to support token-22 extensions serialisation. See https://github.com/solana-labs/solana-program-library/pull/5437

nikhil-helius avatar Oct 19 '23 00:10 nikhil-helius

Hey @joncinque are we duplicating work here, or is this necessary?

https://github.com/solana-labs/solana-program-library/blob/acabef3680e972baf8e9a47531c35eaa45405740/token/program-2022/src/serialization.rs#L112-L147

buffalojoec avatar Oct 19 '23 07:10 buffalojoec

Yes, I think it makes more sense to add serialization in zk-token-sdk. We can eventually remove the ones in token-2022.

samkim-crypto avatar Oct 20 '23 15:10 samkim-crypto

Sorry for the delay. Got busy with a lot of other things. Planning to work on this, this weekend

ghost avatar Jan 18 '24 14:01 ghost