-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(contract): remove keypackage refs, regen bindings (#24)
- Loading branch information
Showing
6 changed files
with
214 additions
and
2,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.24; | ||
|
||
struct KeyPackage { | ||
// store serialized onchain | ||
bytes[] data; | ||
} | ||
|
||
struct UserInfo { | ||
uint256[] keyPackageIndices; | ||
bytes signaturePubKey; | ||
} | ||
|
||
interface IScKeystore { | ||
function userExists(address user) external view returns (bool); | ||
|
||
function addUser(address user, bytes calldata signaturePubKey, KeyPackage calldata keyPackage) external; | ||
function addUser(address user, bytes calldata signaturePubKey) external; | ||
|
||
function getUser(address user) external view returns (UserInfo memory); | ||
|
||
function addKeyPackage(KeyPackage calldata) external; | ||
|
||
function getAvailableKeyPackage(address user) external view returns (KeyPackage memory); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.