Second Talent2 open jobs

Rust Engineer

Systems, C++ and performancePosted 5 weeks agovia Himalayas, a remote job board

Work type
RemoteIn India, the US, Australia and Singapore
Experience
3+ years
Pay
Not listed
Posted
5 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Rust and Software engineering practice

About the job

Rust Engineer Remote
Work from anywhere within ±4 hours of GMT+8

About the Company
Our client is on a mission to redefine digital identity with a privacy-first approach. With over 3.5 million decentralized profiles issued globally, theyre building holistic identity solutions that solve the inefficiencies and risks of traditional verification systems, including fraud and fragmented data control.

The company is backed by top-tier global VCs and led by experienced founders and executives from world-renowned tech companies. They believe in empowering individuals to own and control their digital identities, driving a fairer and more secure digital future.

About the Role
As a Rust Engineer, you'll be a key player in the expansion of our decentralized systems. Youll collaborate with cross-functional teamsengineers, product managers, designers, and security expertsto build and scale core services and node infrastructure.

What Youll Do
️ Develop Rust-based core components to ensure performance, scalability, and reliability
Implement cryptographic protocols (e.g., threshold approvals, digital signature aggregation)
️ Design consensus logic, smart contract integrations, and policy management frameworks
Build APIs connecting on-chain and off-chain operations for seamless interoperability
Work closely with product, blockchain, and security teams to deliver robust solutions
Write high-quality, production-grade code with comprehensive test coverage

What Youll Bring
3+ years in Rust systems programming with production-level experience
Strong grasp of decentralized systems, blockchain concepts, and cryptographic methods
Proficiency in async programming and low-level systems optimization
Experience designing secure and scalable systems

Nice-to-Have Experience
Worked on Web3 or blockchain-based products
Familiarity with identity systems: OAuth, OpenID, DID, Verifiable Credentials
Knowledge of secure enclave programming and cryptography
Experience with smart contracts, secure multiparty computation, or DeFi
Comfortable working in a remote environment

Whats in It for You
Ownership & Rewards: Competitive salary + performance bonus + equity options
Time to Recharge: Generous PTO to rest and recharge
️ Health & Wellness: Insurance + annual wellness stipend
Learning & Development: Budget to keep growing professionally
Team Culture: Social perks + global team offsites (Vietnam 2024 was a blast!)
Tools for Success: Choose your preferred Mac or PC setup

Our Principles

  • Ownership Over Authority

  • Transparency Over Power

  • Collaborators Inform, Experts Decide

  • Debate and Commit

  • Learn to Move Forward

  • Change Is the Indicator of Growth

  • DEI Is the Start, Not the Finish

  • Joy Is a Base Expectation

Originally posted on Himalayas

Interested?Rust Engineer at Second Talent

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Rust and Software engineering practice

Interview questions for this job

For the skills the ad mentions: Rust. And what Systems, C++ and performance interviews usually cover: Software engineering practice.

127 questions
  • What is this question mark operator about?Rust

    As you may have noticed, Rust does not have exceptions. It has panics, but their use for error-handling is discouraged (they are meant for unrecoverable errors).

    In Rust, error handling uses Result. A typical example would be:

    fn halves_if_even(i: i32) -> Result<i32, Error> {
        if i % 2 == 0 {
            Ok(i / 2)
        } else {
            Err(/* something */)
        }
    }
    fn do_the_thing(i: i32) -> Result<i32, Error> {
        let i = match halves_if_even(i) {
            Ok(i) => i,
            Err(e) => return Err(e),
        };
        // use `i`
    }
    

    This is great because:

    • when writing the code you cannot accidentally forget to deal with the error,
    • when reading the code you can immediately see that there is a potential for error right here.

    It's less than ideal, however, in that it is very verbose. This is where the question mark operator ? comes in.

    The above can be rewritten as:

    fn do_the_thing(i: i32) -> Result<i32, Error> {
        let i = halves_if_even(i)?;
        // use `i`
    }
    

    which is much more concise.

    What ? does here is equivalent to the match statement above with an addition. In short:

    1. It unpacks the Result if OK
    2. It returns the error if not, calling From::from on the error value to potentially convert it to another type.

    It's a bit magic, but error handling needs some magic to cut down the boilerplate, and unlike exceptions it is immediately visible which function calls may or may not error out: those that are adorned with ?.

    One example of the magic is that this also works for Option:

    // Assume
    // fn halves_if_even(i: i32) -> Option<i32>
    fn do_the_thing(i: i32) -> Option<i32> {
        let i = halves_if_even(i)?;
        // use `i`
    }
    

    The ? operator, stabilized in Rust version 1.13.0 is powered by the (unstable) Try trait.

    See also:

    From Stack Overflow: asked by Angel Angel, answered by Matthieu M. (CC BY-SA 4.0)

  • Why is IoC / DI not common in Python?Software engineering practice

    I don't actually think that DI/IoC are that uncommon in Python. What is uncommon, however, are DI/IoC frameworks/containers.

    Think about it: what does a DI container do? It allows you to

    1. wire together independent components into a complete application ...
    2. ... at runtime.

    We have names for "wiring together" and "at runtime":

    1. scripting
    2. dynamic

    So, a DI container is nothing but an interpreter for a dynamic scripting language. Actually, let me rephrase that: a typical Java/.NET DI container is nothing but a crappy interpreter for a really bad dynamic scripting language with butt-ugly, sometimes XML-based, syntax.

    When you program in Python, why would you want to use an ugly, bad scripting language when you have a beautiful, brilliant scripting language at your disposal? Actually, that's a more general question: when you program in pretty much any language, why would you want to use an ugly, bad scripting language when you have Jython and IronPython at your disposal?

    So, to recap: the practice of DI/IoC is just as important in Python as it is in Java, for exactly the same reasons. The implementation of DI/IoC however, is built into the language and often so lightweight that it completely vanishes.

    (Here's a brief aside for an analogy: in assembly, a subroutine call is a pretty major deal - you have to save your local variables and registers to memory, save your return address somewhere, change the instruction pointer to the subroutine you are calling, arrange for it to somehow jump back into your subroutine when it is finished, put the arguments somewhere where the callee can find them, and so on. IOW: in assembly, "subroutine call" is a Design Pattern, and before there were languages like Fortran which had subroutine calls built in, people were building their own "subroutine frameworks". Would you say that subroutine calls are "uncommon" in Python, just because you don't use subroutine frameworks?)

    BTW: for an example of what it looks like to take DI to its logical conclusion, take a look at Gilad Bracha's Newspeak Programming Language and his writings on the subject:

    From Stack Overflow: asked by tux21b, answered by Jörg W Mittag (CC BY-SA 4.0)

  • What is the difference between iter and into_iter?Rust

    TL;DR:

    • The iterator returned by into_iter may yield any of T, &T or &mut T, depending on the context.
    • The iterator returned by iter will yield &T, by convention.
    • The iterator returned by iter_mut will yield &mut T, by convention.

    The first question is: "What is into_iter?"

    into_iter comes from the IntoIterator trait:

    pub trait IntoIterator 
    where
        <Self::IntoIter as Iterator>::Item == Self::Item, 
    {
        type Item;
        type IntoIter: Iterator;
        fn into_iter(self) -> Self::IntoIter;
    }
    

    You implement this trait when you want to specify how a particular type is to be converted into an iterator. Most notably, if a type implements IntoIterator it can be used in a for loop.

    For example, Vec implements IntoIterator... thrice!

    impl<T> IntoIterator for Vec<T>
    impl<'a, T> IntoIterator for &'a Vec<T>
    impl<'a, T> IntoIterator for &'a mut Vec<T>
    

    Each variant is slightly different.

    This one consumes the Vec and its iterator yields values (T directly):

    impl<T> IntoIterator for Vec<T> {
        type Item = T;
        type IntoIter = IntoIter<T>;
        fn into_iter(mut self) -> IntoIter<T> { /* ... */ }
    }
    

    The other two take the vector by reference (don't be fooled by the signature of into_iter(self) because self is a reference in both cases) and their iterators will produce references to the elements inside Vec.

    This one yields immutable references:

    impl<'a, T> IntoIterator for &'a Vec<T> {
        type Item = &'a T;
        type IntoIter = slice::Iter<'a, T>;
        fn into_iter(self) -> slice::Iter<'a, T> { /* ... */ }
    }
    

    While this one yields mutable references:

    impl<'a, T> IntoIterator for &'a mut Vec<T> {
        type Item = &'a mut T;
        type IntoIter = slice::IterMut<'a, T>;
        fn into_iter(self) -> slice::IterMut<'a, T> { /* ... */ }
    }
    

    So:

    What is the difference between iter and into_iter?

    into_iter is a generic method to obtain an iterator, whether this iterator yields values, immutable references or mutable references is context dependent and can sometimes be surprising.

    iter and iter_mut are inherent methods. Their return type is therefore independent of the context, and will conventionally be iterators yielding immutable references and mutable references, respectively.

    The author of the Rust by Example post used Rust pre-1.53.0 to illustrate the surprise coming from the dependence on the context (i.e., the type) on which into_iter is called, and is also compounding the problem by using the fact that:

    1. Back then, IntoIterator was not implemented for [T; N], only for &[T; N] and &mut [T; N].
    2. When a method is not implemented for a value, it is automatically searched for references to that value instead

    which is very surprising for into_iter since all types (except [T; N]) implement it for all 3 variations (value and references).

    Read the rest at the sourceFrom Stack Overflow: asked by vitiral, answered by Matthieu M. (CC BY-SA 4.0)

  • What is Inversion of Control?Software engineering practice

    The Inversion-of-Control (IoC) pattern, is about providing any kind of callback, which "implements" and/or controls reaction, instead of acting ourselves directly (in other words, inversion and/or redirecting control to the external handler/controller). The Dependency-Injection (DI) pattern is a more specific version of IoC pattern, and is all about removing direct and/or hard-coded dependencies from your code, to replace them with inject-able dependencies.

    Every DI implementation can be considered IoC, but one should not call it IoC, because implementing Dependency-Injection is harder than callback (Don't lower your product's worth by using the general term "IoC" instead).

    For DI example, say your application has a text-editor component, and you want to provide spell checking. Your standard code would look something like this:

    public class TextEditor {
        private SpellChecker checker;
        public TextEditor() {
            this.checker = new SpellChecker();
        }
    }
    

    What we've done here creates a dependency between the TextEditor and the SpellChecker. In an IoC scenario we would instead do something like this:

    public class TextEditor {
        private IocSpellChecker checker;
        public TextEditor(IocSpellChecker checker) {
            this.checker = checker;
        }
    }
    

    In the first code example we are instantiating SpellChecker (this.checker = new SpellChecker();), which means the TextEditor class directly depends on the SpellChecker class.

    In the second code example we are creating an abstraction by having the SpellChecker dependency class in TextEditor's constructor signature (not initializing dependency in class). This allows us to call the dependency then pass it to the TextEditor class like so:

    SpellChecker sc = new SpellChecker(); // dependency
    TextEditor textEditor = new TextEditor(sc);
    

    Now the client creating the TextEditor class has control over which SpellChecker implementation to use because we're injecting the dependency into the TextEditor signature.

    For example, we could inject some improved implementation instead of the default implementation, or, depending on user's needs or settings we could even inject a Spanish spellchecker or German spellchecker.

    Note that just like IoC being the base of many other patterns, above sample is only one of many Dependency-Injection kinds, for example:

    • Constructor Injection.

      Where an instance of IocSpellChecker would be passed to constructor, either automatically or similar to above manually.

    • Setter Injection.

      Where an instance of IocSpellChecker would be passed through setter-method or public property.

    • Service-lookup and/or Service-locator

      Where TextEditor would ask a known provider for a globally-used-instance (service) of IocSpellChecker type (and that maybe without storing said instance, and instead, asking the provider again and again).

    From Stack Overflow: asked by Mike Minutillo, answered by urini (CC BY-SA 4.0)

  • What is the equivalent of the join operator over a vector of Strings?Rust

    In Rust 1.3.0 and later, join is available:

    fn main() {
        let string_list = vec!["Foo".to_string(),"Bar".to_string()];
        let joined = string_list.join("-");
        assert_eq!("Foo-Bar", joined);
    }
    

    Before 1.3.0 this method was called connect:

    let joined = string_list.connect("-");
    

    Note that you do not need to import anything since the methods are automatically imported by the standard library prelude.

    join copies elements of the vector, it does not move them, thus it preserves the contents of the vector, rather than destroying it.

    From Stack Overflow: asked by Davide Aversa, answered by MatthewG (CC BY-SA 4.0)

  • Have you ever failed at a task?Behavioural

    Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:

    • when have you faced a challenging situation?
    • can you tell us about a personal achievement at work?
    • have you ever taken the initiative?
    • have you ever failed at a task?

    Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.

    If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.

    Use the  STAR method  to help structure your answers.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: C++ and systems jobs in India (161) and Remote C++ and systems jobs in India (39)