
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@bandprotocol/obi-ts
Advanced tools
Typescript Library for encoding and decoding data according to the Oracle Binary Interface (OBI) specification.
npm install @bandprotocol/obi-ts
# or
yarn add @bandprotocol/obi-ts
import { Obi } from '@bandprotocol/obi-ts'
// Create OBI object
const obi = new Obi(
`{symbols:[string],minimum_source_count:u8}/{responses:[{symbol:string,response_code:u8,rate:u64}]}`
)
// Encode input
const input = { symbol: 'BTC', minimum_source_count: 10 }
const encodedInput = obi.encodeInput(input)
// Decode output
const output = obi.decodeOutput(encodedBytes)
console.log(output)
OBI supports the following data types:
string
: UTF-8 encoded stringbytes
: Raw bytesu8
, u16
, u32
, u64
, u128
, u256
: Unsigned integersi8
, i16
, i32
, i64
, i128
, i256
: Signed integersbool
: Booleanvector<T>
: Array of elements of type T
struct
: Object with named fieldsFor detailed documentation, please visit:
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License
For support and questions, please join our Discord community or open an issue in this repository.
FAQs
Typescript library for BandChain OBI
We found that @bandprotocol/obi-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.