Closed hyunsooda closed 1 month ago
@ian0371
I initially tried to remove this comment from this PR, but some words(bls-signature
) were a little odd to me, so they have not been removed yet. If this comment just targeted BLS12381 operations, let me remove it.
Proposed changes
History
Implementation
This is an example contract that calls add operations.
Once deployed, can be called like this
The output of
bytes memory
is encoded asoffset(32bytes) | length(32bytes) | value(conductive 32bytes)
. The actual value of add operation starts from64
, the total output size is192
bytes, and the actual value size is128
bytes.Discussion
The calculated CC numbers were based on static execution (comparison with other existing operations).
add
operation was selected and the CC value was derived from below.Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
I have read the CLA Document and I hereby sign the CLA
in first time contribute$ make test
)Related issues
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...