Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

canoser

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canoser - npm Package Compare versions

Comparing version
0.7.7
to
0.7.8
+1
-1
canoser.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: canoser
Version: 0.7.7
Version: 0.7.8
Summary: A python implementation of the LCS(Libra Canonical Serialization) for the Libra network.

@@ -5,0 +5,0 @@ Home-page: https://github.com/yuan-xy/canoser-python.git

@@ -31,1 +31,8 @@

return self.offset == self.buffer_len
def position(self):
return self.offset
def read_u8(self):
arr = self.read_bytes(1)
return int(arr[0])

@@ -1,1 +0,1 @@

version = "0.7.7"
version = "0.7.8"
Metadata-Version: 2.1
Name: canoser
Version: 0.7.7
Version: 0.7.8
Summary: A python implementation of the LCS(Libra Canonical Serialization) for the Libra network.

@@ -5,0 +5,0 @@ Home-page: https://github.com/yuan-xy/canoser-python.git

@@ -6,6 +6,7 @@ from canoser import *

def test_read():
data = [1,2,3,4,5]
data = [6,2,3,4,5]
cursor = Cursor(data)
assert cursor.read_bytes(1) == b'\x01'
assert cursor.read_u8() == 6
assert cursor.offset == 1
assert cursor.position() == cursor.offset
assert cursor.peek_bytes(3) == b'\x02\x03\x04'

@@ -12,0 +13,0 @@ assert cursor.offset == 1