Help / WLanguage / WLanguage functions / Standard functions / String functions
  • BIP39 dictionaries
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
BufferToPhrase (Function)
In french: BufferVersPhrase
Converts a buffer to a mnemonic phrase using the BIP39 algorithm.
MyBuffer is Buffer = HexaToBuffer("0123456789ABCDEF")
Trace(BufferToPhrase(MyBuffer, languageFrench))
// contains "abreuver barrage espèce associer pointe véhicule"
Trace(BufferToPhrase(MyBuffer, languageEnglish))
// contains "abuse boss fly battle rubber waste"
Trace(BufferToPhrase(MyBuffer, languageSpanish))
// contient "abuelo azul filtro arte prueba vengar"
<Result> = BufferToPhrase(<Buffer to use> [, <Dictionary>])
<Result>: Character string
Mnemonic phrase.
<Buffer to use>: Buffer
Buffer that will be used to generate the mnemonic phrase. The size of the buffer (in bytes) must be a multiple of 4 and less than or equal to 32.
<Dictionary>: Optional character string or integer constant
BIP39 dictionary to use. The words used in the mnemonic phrase will be taken from this dictionary. This parameter can correspond to:
  • the path of the BIP39 file to use.
  • a constant that specifies which dictionary will be used:
    languageEnglishUses the English BIP39 dictionary provided with the product.
    languageFrenchUses the French BIP39 dictionary provided with the product.
    languageSpanishUses the Spanish BIP39 dictionary provided with the product.
If this parameter is not specified, the function will use the BIP39 dictionary that corresponds to the current language in the executable (defined with Nation, for example).
If no dictionary is found, English will be used.

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).
Business / UI classification: Business Logic
Component: wd300std.dll
Minimum version required
  • Version 26
This page is also available for…
String to BufferToPhrase
MyBuffer is Buffer = Encode("teste", encodeBASE64)
Trace (BufferToPhrase(MyBuffer, languageEnglish)

// contains "gold deny ozone silk inspire ozone"

sPhraseEN is string = "gold deny ozone silk inspire ozone"
MyBuffer is Buffer = (BufferToHexa(PhraseToBuffer(sPhraseEN)))
sText is Buffer = HexaToBuffer(MyBuffer)
Trace (Decode(sText, encodeBASE64))

//contains "teste"
18 Jan. 2022

Last update: 05/26/2022

Send a report | Local help