Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@tkey/security-questions
Advanced tools
Readme
The tKey Security Questions Module helps you add or remove the and password as a share for tkey. This module is the part of the tKey SDK.
npm install --save @tkey/security-questions
SecurityQuestionsModule
class from @tkey/security-questions
import SecurityQuestionsModule from "@tkey/security-questions";
SecurityQuestionsModule
class to a variableconst securityQuestionsModule = new SecurityQuestionsModule(params);
params
saveAnswers?
: boolean
The SecurityQuestionsModule
class returns an object with the following properties:
class SecurityQuestionsModule implements IModule {
moduleName: string;
tbSDK: ITKeyApi;
saveAnswers: boolean;
constructor(saveAnswers?: boolean);
static refreshSecurityQuestionsMiddleware(generalStore: unknown, oldShareStores: ShareStoreMap, newShareStores: ShareStoreMap): unknown;
setModuleReferences(tbSDK: ITKeyApi): void;
initialize(): Promise<void>;
generateNewShareWithSecurityQuestions(answerString: string, questions: string): Promise<GenerateNewShareResult>;
getSecurityQuestions(): string;
inputShareFromSecurityQuestions(answerString: string): Promise<void>;
changeSecurityQuestionAndAnswer(newAnswerString: string, newQuestions: string): Promise<void>;
saveAnswerOnTkeyStore(answerString: string): Promise<void>;
getAnswer(): Promise<string>;
}
With the SecurityQuestionsModule
, you've access to the following functions:
generateNewShareWithSecurityQuestions(answerString: string, questions: string)
answerString
: Answer corresponding to a security questionquestions
: The secutity questionPromise<GenerateNewShareResult>
: The GenerateNewShareResult
objectdeclare type GenerateNewShareResult = {
newShareStores: ShareStoreMap;
newShareIndex: BN;
};
export declare type ShareStoreMap = {
[shareIndex: string]: ShareStore;
};
declare class ShareStore implements ISerializable {
share: Share;
polynomialID: PolynomialID;
constructor(share: Share, polynomialID: PolynomialID);
static fromJSON(value: StringifiedType): ShareStore;
toJSON(): StringifiedType;
}
getSecurityQuestions()
string
: The security questioninputShareFromSecurityQuestions(answerString: string)
answerString
: Answer corresponding to the security questionchangeSecurityQuestionAndAnswer(newAnswerString: string, newQuestions: string)
newAnswerString
: Answer corresponding to the new security questionnewQuestions
: The new secutity questionsaveAnswerOnTkeyStore(answerString: string)
answerString
: Answer corresponding to the security questiongetAnswer
string
: The answer corresponding to the security questionFAQs
TKey Security Questions Module
The npm package @tkey/security-questions receives a total of 1,139 weekly downloads. As such, @tkey/security-questions popularity was classified as popular.
We found that @tkey/security-questions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.