import { ContractGroupJSON , ECPoint , JSONHelper , SerializableJSON } from '@neo-one/client-common' ; export interface ContractGroupModelAdd { readonly publicKey : ECPoint ; readonly signature : Buffer ; } export class ContractGroupModel implements SerializableJSON < ContractGroupJSON > { public readonly publicKey : ECPoint ; public readonly signature : Buffer ; public constructor ( { publicKey , signature } ) { this . publicKey = publicKey ; this . signature = signature ; } public serializeJSON ( ) { return { publicKey : JSONHelper . writeECPoint ( this . publicKey ) , signature : JSONHelper . writeBase64Buffer ( this . signature ) } ; } }