
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@nimiq/oasis-api
Advanced tools
A simple ES5 library to interact with the OASIS API.
This package can be installed from NPM as
@nimiq/oasis-api
https://www.npmjs.com/package/@nimiq/oasis-api
function init(url: string)
async function createHtlc(
contract: {
asset: Asset,
amount: number,
beneficiary: OctetKeyPair | EllipticCurveKey,
hash: {
algorithm: 'sha256' | 'blake2b',
value: string,
},
preimage: {
size: 32,
},
expires: number,
includeFee: boolean,
},
authorizationToken?: string,
): Promise<Htlc<HtlcStatus.PENDING>>
async function getHtlc(id: string): Promise<Htlc>
async function settleHtlc(
id: string,
secret: string,
settlementJWS: string,
authorizationToken?: string,
): Promise<Htlc<HtlcStatus.SETTLED>>
async function sandboxMockClearHtlc(id: string): Promise<boolean>
async function exchangeAuthorizationToken(token: string): Promise<string>
function base64ToHex(base64: string): string
function hexToBase64(hex: string): string
FAQs
Typed Javascript library to access OASIS APIs from the browser.
The npm package @nimiq/oasis-api receives a total of 9 weekly downloads. As such, @nimiq/oasis-api popularity was classified as not popular.
We found that @nimiq/oasis-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.