Skip to content

Commit

Permalink
Merge pull request #1483 from o1-labs/feat/toinput-group
Browse files Browse the repository at this point in the history
feat(group.ts): add static method `toInput` for Group instance
  • Loading branch information
MartinMinkov committed Mar 6, 2024
2 parents 0ec1c9d + 83acf12 commit 045c0ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Added

- Internal benchmarking tooling to keep track of performance https://github.com/o1-labs/o1js/pull/1481
- Add `toInput` method for `Group` instance https://github.com/o1-labs/o1js/pull/1483

## [0.17.0](https://github.com/o1-labs/o1js/compare/1ad7333e9e...74948acac) - 2024-03-06

Expand Down
6 changes: 6 additions & 0 deletions src/lib/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ class Group {
}`;
}
}

static toInput(x: Group) {
return {
fields: [x.x, x.y],
};
}
}

// internal helpers
Expand Down

0 comments on commit 045c0ed

Please sign in to comment.