Skip to content

Instantly share code, notes, and snippets.

@kristjank
Last active August 16, 2019 09:34
Show Gist options
  • Save kristjank/aa4f7954c4437ab9cd241e89c2c1edb4 to your computer and use it in GitHub Desktop.
Save kristjank/aa4f7954c4437ab9cd241e89c2c1edb4 to your computer and use it in GitHub Desktop.
serde-process
export class BusinessRegistrationTransaction extends Transactions.Transaction {
public serialize(): ByteBuffer {
const { data } = this;
const businessRegistrationAsset = data.asset.businessRegistration as IBusinessRegistrationAsset;
// TODO Implement serialization (asset -> ByteBuffer)
return buffer;
}
public deserialize(buf: ByteBuffer): void {
const { data } = this;
// TODO Implement deserialization (buffer -> data.asset)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment