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 new and existing functions of MpcCore to readme #21

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Contributing to COTI SDK TypeScript Examples
# Contributing to COTI Confidentiality Contracts Project

Thank you for your interest in contributing to the COTI SDK TypeScript Examples project! We welcome contributions from the community and appreciate your efforts to improve our project.
Thank you for your interest in contributing to the COTI Confidentiality Contracts project! We welcome contributions from the community and appreciate your efforts to improve our project.

## Table of Contents

Expand Down Expand Up @@ -38,8 +38,8 @@ We welcome code contributions! To get started, follow these steps:

2. **Clone your fork**:
```sh
git clone https://github.com/your-username/coti-sdk-typescript-examples.git
cd coti-sdk-typescript-examples
git clone https://github.com/your-username/confidentiality-contracts.git
cd confidentiality-contracts
```

3. **Create a branch**:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2024 COTI

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions contracts/AccountOnboard/AccountOnboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "../lib/MpcCore.sol";

contract AccountOnboard {

event AccountOnboarded(address indexed _from, bytes userKey);
event AccountOnboarded(address indexed _from, bytes userKey1, bytes userKey2);

/**
* @notice onboards the account and emits the users AES encryption key in encrypted form
Expand All @@ -14,7 +14,7 @@ contract AccountOnboard {
* @param signedEK signed hash of the RSA public key
*/
function onboardAccount(bytes calldata publicKey, bytes calldata signedEK) public {
bytes memory accountKey = MpcCore.getUserKey(publicKey, signedEK);
emit AccountOnboarded(msg.sender, accountKey);
(bytes memory accountKey1, bytes memory accountKey2)= MpcCore.getUserKey(publicKey, signedEK);
emit AccountOnboarded(msg.sender, accountKey1, accountKey2);
}
}
Loading