Skip to content

[fastx types] make size of Move's address type configurable #44

@sblackshear

Description

@sblackshear

Move account addresses are 16 bytes. We would like to make them the same size as fastX authenticators (i.e., FastPayAddress), and (ideally) fastX ObjectID's too. We haven't decided on the size of either of those types yet, but they will likely need to be >= 20 bytes for safety (e.g., a 32 byte hash truncated to the shortest length that is safe w.r.t collisions).

Whatever length(s) we chose, we need to be able to adjust Move addresses accordingly. The size of Move addresses is determined by this constant in the Diem codebase. We need to tweak it via one mechanism or another. Some ideas:

  • cargo magic to set a constant at compile-time via a build config (preferred long-term solution)
  • Use cargo's patch feature to override the address length locally (probably the quickest short term solution)
  • Use a fork of Diem with our preferred address length (least preferred solution)

Metadata

Metadata

Assignees

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