ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
  • BIP39 dictionaries
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
PhraseToBuffer (Function)
In french: PhraseVersBuffer
Returns the buffer encoded in a BIP39 mnemonic phrase.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
// Décode la phrase mnémotechnique pour retrouver le buffer
sPhraseFR is string = "abreuver barrage espèce associer pointe véhicule"
Trace(BufferToHexa(PhraseToBuffer(sPhraseFR)))
// contient 01 23 45 67 89 AB CD EF

sPhraseEN is string = "abuse boss fly battle rubber waste"
Trace(BufferToHexa(PhraseToBuffer(sPhraseEN)))
// contient 01 23 45 67 89 AB CD EF

sPhraseES is string = "abuelo azul filtro arte prueba vengar"
Trace(BufferToHexa(PhraseToBuffer(sPhraseES)))
// contient 01 23 45 67 89 AB CD EF
Syntax
<Result> = PhraseToBuffer(<Phrase> [, <Dictionary>])
<Result>: Buffer
Buffer encoded in the phrase.
<Phrase>: Character string
Phrase generated by a BIP39 algorithm. The words in this phrase should be separated by spaces. A BIP39 phrase must contain a number of words that is a multiple of 3, and less than or equal to 24.
<Dictionary>: Optional character string or integer constant
File path corresponding to the BIP39 dictionary to be used. This dictionary is used to identify the words of the phrase and to get their index.
If this parameter is not specified, the function will determine which of the dictionaries included in the product should be used (French, English or Spanish).
New in version 2025
WEBDEV - Browser code This parameter corresponds to a character string containing the words in the dictionary, separated by RCs (carriage returns)..
Remarks

BIP39 dictionaries

BIP39 dictionaries are not equivalent to standard language dictionaries. Their construction follows precise rules. It is recommended to use the BIP39 dictionaries included in the product (French, English, Spanish).
Component: wd300std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help