Skip to content

Commit

Permalink
Signature update (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
volod-vana authored Oct 3, 2024
1 parent e007a44 commit 06416fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vana"
version = "0.18.0"
version = "0.19.0"
description = ""
authors = ["Tim Nunamaker <[email protected]>", "Volodymyr Isai <[email protected]>", "Kahtaf Alam <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion vana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = "0.18.0"
__version__ = "0.19.0"

import rich

Expand Down
4 changes: 3 additions & 1 deletion vana/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def from_string(cls, s: str) -> "NodeServerInfo":


class ProofData(BaseModel):
file_url: str
score: float
dlp_id: int
metadata: Optional[str] = ""
Expand All @@ -112,8 +113,9 @@ class Proof(BaseModel):

def sign(self, wallet):
packed_data = Web3().solidity_keccak(
['uint256', 'uint256', 'string', 'string', 'string'],
['string', 'uint256', 'uint256', 'string', 'string', 'string'],
[
self.data.file_url,
as_wad(self.data.score),
self.data.dlp_id,
self.data.metadata,
Expand Down

0 comments on commit 06416fb

Please sign in to comment.