
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.
@siddomains/sid-contracts
Advanced tools
This repo doubles as an npm package with the compiled JSON contracts
import {
BaseRegistrar,
BaseRegistrarImplementation,
BulkRenewal,
SID,
SIDRegistry,
SIDRegistryWithFallback,
SIDRegistrarController,
FIFSRegistrar,
LinearPremiumPriceOracle,
PriceOracle,
PublicResolver,
Resolver,
ReverseRegistrar,
StablePriceOracle,
TestRegistrar
} from '@Space-ID/SpaceIDContract'
// Registry
import '@Space-ID/SpaceIDContract/contracts/registry/SID.sol';
import '@Space-ID/SpaceIDContract/contracts/registry/SIDRegistry.sol';
import '@Space-ID/SpaceIDContract/contracts/registry/SIDRegistryWithFallback.sol';
import '@Space-ID/SpaceIDContract/contracts/registry/ReverseRegistrar.sol';
import '@Space-ID/SpaceIDContract/contracts/registry/TestRegistrar.sol';
// BNBRegistrar
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/BaseRegistrar.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/BaseRegistrarImplementation.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/BulkRenewal.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/BaseRegistrar.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/BNBRegistrarController.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/LinearPremiumPriceOracle.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/PriceOracle.sol';
import '@Space-ID/SpaceIDContract/contracts/bnbregistrar/StablePriceOracle.sol';
// Resolvers
import '@Space-ID/SpaceIDContract/contracts/resolvers/PublicResolver.sol';
import '@Space-ID/SpaceIDContract/contracts/resolvers/Resolver.sol';
If your environment does not have compiler, you can access to the raw hardhat artifacts files at node_modules/@Space-ID/SpaceIDContract/artifacts/contracts/${modName}/${contractName}.sol/${contractName}.json
The SID registry is the core contract that lies at the heart of SID resolution. All SID lookups start by querying the registry. The registry maintains a list of domains, recording the owner, resolver, and TTL for each, and allows the owner of a domain to make changes to that data. It also includes some generic registrars.
Interface of the SID Registry.
Implementation of the SID Registry, the central contract used to look up resolvers and owners for domains.
The new impelmentation of the SID Registry.
Implementation of a simple first-in-first-served registrar, which issues (sub-)domains to the first account to request them.
Implementation of the reverse registrar responsible for managing reverse resolution via the .addr.reverse special-purpose TLD.
Implementation of the .test
registrar facilitates easy testing of SID on the Ethereum test networks. Currently deployed on Ropsten network, it provides functionality to instantly claim a domain for test purposes, which expires 28 days after it was claimed.
Implements an SID registrar intended for the .bnb TLD.
These contracts were audited by ConsenSys dilligence; the audit report is available here.
BaseRegistrar is the contract that owns the TLD in the BNB registry. This contract implements a minimal set of functionality:
This separation of concerns provides name owners strong guarantees over continued ownership of their existing names, while still permitting innovation and change in the way names are registered and renewed via the controller mechanism.
BNBRegistrarController is the first implementation of a registration controller for the new registrar. This contract implements the following functionality:
The commit/reveal process is used to avoid frontrunning, and operates as follows:
The minimum delay and expiry for commitments exist to prevent miners or other users from effectively frontrunnig registrations.
SimplePriceOracle is a trivial implementation of the pricing oracle for the EthRegistrarController that always returns a fixed price per domain per year, determined by the contract owner.
StablePriceOracle is a price oracle implementation that allows the contract owner to specify pricing based on the length of a name, and uses a fiat currency oracle to set a fixed price in fiat per name.
Resolver implements a general-purpose BNB resolver that is suitable for most standard BNB use-cases. The public resolver permits updates to BNB records by the owner of the corresponding name.
PublicResolver includes the following profiles that implements different EIPs.
ABI()
).addr()
).contenthash()
).supportsInterface()
).name()
).pubkey()
).text()
).npx hardhat run --network bsc_testnet scripts/deploy.js 2> /dev/null
git clone https://github.com/Space-ID/SpaceIDContract
cd SpaceIDContract
yarn
yarn test
yarn pub
FAQs
SID contracts
We found that @siddomains/sid-contracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.