Skip to content

consistence between testvectors format in stf/preimages and stf/accumulate #107

Closed

Description

@celadari

I recommend use the same format for fields naming betweenstf/preimages and stf/accumulate

At the moment,

For stf/preimages , in preimages.asn we have

Account ::= SEQUENCE {
    -- [a_p] Preimages blobs.
    preimages SEQUENCE OF PreimagesMapEntry,
    -- [a_l] Preimages lookup metadata.
    lookup-meta SEQUENCE OF LookupMetaMapEntry
}

For stf/accumulate , in accumulate.asn we have

Account ::= SEQUENCE {
    -- [a_c, a_b, a_g, a_m, a_o, a_i] Service metadata.
    service ServiceInfo,
    -- [a_s] Service storage.
    storage SEQUENCE OF StorageMapEntry,
    -- [a_p] Preimages blobs.
    preimages-blob SEQUENCE OF PreimagesMapEntry,
    -- [a_l] Preimages status.
    preimages-status SEQUENCE OF PreimagesStatusMapEntry
}

fields are not the same in name but also in types (LookupMetaMapEntry different than PreimagesStatusMapEntry)

Desired result:

  • Would be nice to either use preimages and lookup-meta for both OR preimages-blob and preimages-status for both
  • also homogenize LookupMetaMapEntry and PreimagesStatusMapEntry
  • perhaps move some definitions like PreimagesMapEntry and PreimagesStatusMapEntry to lib/jam-types.asn

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions