Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Numeric.toBigEndianBytes methods #486

Open
aslesarenko opened this issue May 7, 2019 · 0 comments
Open

Add Numeric.toBigEndianBytes methods #486

aslesarenko opened this issue May 7, 2019 · 0 comments
Assignees
Labels
A-consensus Area: Code used in consensus (i.e. transaction validation) C-feature Category: Feature request or PR soft-fork Implementation requires soft-fork
Milestone

Comments

@aslesarenko
Copy link
Member

aslesarenko commented May 7, 2019

Numeric.toBigEndianBytes method should be added to ErgoScript and ErgoTree.

Example:

512.toBigEndianBytes == Coll(0.toByte, 0.toByte, 2.toByte, 0.toByte)
@aslesarenko aslesarenko added P0-critical Priority: Should be closed before the assigned milestone A-consensus Area: Code used in consensus (i.e. transaction validation) labels May 7, 2019
@aslesarenko aslesarenko added this to the Candidate milestone May 7, 2019
@aslesarenko aslesarenko added soft-fork Implementation requires soft-fork and removed P0-critical Priority: Should be closed before the assigned milestone labels May 8, 2019
@aslesarenko aslesarenko self-assigned this May 12, 2024
@aslesarenko aslesarenko changed the title Add Numeric toBytes, toBits Add Numeric.toBigEndianBytes methods May 21, 2024
@aslesarenko aslesarenko added the C-feature Category: Feature request or PR label May 21, 2024
@aslesarenko aslesarenko linked a pull request May 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Area: Code used in consensus (i.e. transaction validation) C-feature Category: Feature request or PR soft-fork Implementation requires soft-fork
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants